bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extglob patterns and dotfiles


From: Chet Ramey
Subject: Re: extglob patterns and dotfiles
Date: Sun, 31 Dec 2017 13:47:10 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

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 appears to be an bug.

It's an interesting question. .c certainly doesn't match any of the
subpatterns. I guess including a `.' as the leading character in the
subpatterns shouldn't allow filenames beginning with `.' to be returned
as not matching. I'll take a look.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]