On 9/26/12 10:07 PM, hans1wo...@gmail.com wrote:
> See also this thread: http://stackoverflow.com/questions/12596468/
> 
> It looks like there is some bug in the pattern matcher
> 
> $ shopt -s extglob
> $ touch a ab ba
> $ echo a*!(x)
> 
> Expected result:
> a ab
> Experienced result:
> ab

The question is whether or not !(x) should match the empty string.  The
bash matcher treats it similarly to [!x], which does not.

Chet

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

Reply via email to