Re: extglob patterns and dotfiles

2018-01-02 Thread Eric Cook
On 01/02/2018 10:30 AM, Chet Ramey wrote: > On 12/31/17 10:36 PM, Eric Cook wrote: > >> So to make my request more specific, i don't think the extglob !() should >> match dotfiles when one of the patterns in the list is preceded with an >> period. >> to be more ksh93-like. > > Let's see if we ca

Re: extglob patterns and dotfiles

2018-01-02 Thread Chet Ramey
On 12/31/17 10:36 PM, Eric Cook wrote: > So to make my request more specific, i don't think the extglob !() should > match dotfiles when one of the patterns in the list is preceded with an > period. > to be more ksh93-like. Let's see if we can be more precise: if a filename beginning with a `.'

Re: extglob patterns and dotfiles

2017-12-31 Thread Eric Cook
On 12/31/2017 01:47 PM, Chet Ramey wrote: > On 12/29/17 6:55 PM, Eric Cook wrote: >> When using an pattern that begin with an period in pattern-list, bash will >> include dotfiles in the results. >> This doesn't seem to be the case with the various korn shells that i have >> seen. Since extglob i

Re: extglob patterns and dotfiles

2017-12-31 Thread Chet Ramey
On 12/29/17 6:55 PM, Eric Cook wrote: > When using an pattern that begin with an period in pattern-list, bash will > include dotfiles in the results. > This doesn't seem to be the case with the various korn shells that i have > seen. Since extglob is based on > ksh's extension to globbing, this a

extglob patterns and dotfiles

2017-12-29 Thread Eric Cook
When using an pattern that begin with an period in pattern-list, bash will include dotfiles in the results. This doesn't seem to be the case with the various korn shells that i have seen. Since extglob is based on ksh's extension to globbing, this appears to be an bug. $ shopt -s extglob; touch