On 9/26/12 10:07 PM, [email protected] 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 [email protected] http://cnswww.cns.cwru.edu/~chet/