Re: !(.pattern) can match . and .. if dotglob is enabled

2021-06-19 Thread Chet Ramey
On 6/17/21 3:53 PM, Nora Platiel wrote: On 2021-06-15 10:19 Chet Ramey wrote: Or rather, to never generate . or .. as a pathname component via globbing. I don't think it's useful -- and it's certainly incompatible -- to make an explicit pattern like `.?' ignore `..'. I think it would be

Re: !(.pattern) can match . and .. if dotglob is enabled

2021-06-19 Thread Chet Ramey
On 6/17/21 3:41 PM, Nora Platiel wrote: On 2021-06-15 09:43 Chet Ramey wrote: I can see how this would be more intuitive. Let's try it. I'll put support in the next devel branch push. Thanks! I'm leaning towards a general statement about how dotglob affects the set of filenames that are

Re: !(.pattern) can match . and .. if dotglob is enabled

2021-06-19 Thread Nora Platiel
Hello, I just tried your commit of Tue Jun 15. I tested all the relevant patterns that came to mind, and they all behave as agreed. I'll let you know if I find something unexpected but I'm satisfied with this solution. Thanks for your work. NP