bug-bash
[Top][All Lists]
Advanced

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

Re: Nested extglob outputs "." ".."


From: Chet Ramey
Subject: Re: Nested extglob outputs "." ".."
Date: Wed, 22 Aug 2018 09:16:12 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 8/22/18 3:57 AM, Michal Pesa wrote:
> Hello, I have encountered a strange behavior of nested extended globs:
> 
> $ echo *
> 0000.txt 000.txt 00.txt 0.txt a.txt b.txt c.txt
> $ echo !(0.txt)
> 0000.txt 000.txt 00.txt a.txt b.txt c.txt
> $ echo !(+(0).txt)
> . .. a.txt b.txt c.txt
> 
> The last example correctly excludes the files but why are "." ".." being
> printed?

This was changed back in January as the result of a discussion started by

http://lists.gnu.org/archive/html/bug-bash/2017-12/msg00074.html

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]