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: Tue, 2 Jan 2018 10:30:57 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

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 `.'
does not match any of the patterns in a !(...) list, don't return it as
a match if the leading dot has to be explicitly matched.

Chet

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



reply via email to

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