Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14528

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

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Nested extglob outputs "." ".."
Date 2018-08-22 09:16 -0400
Message-ID <mailman.5408.1534943782.1292.bug-bash@gnu.org> (permalink)
References <d8f8c7e1-8b7e-956f-3428-6b7bf8870f0c@gmail.com>

Show all headers | View raw


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    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Nested extglob outputs "." ".." Chet Ramey <chet.ramey@case.edu> - 2018-08-22 09:16 -0400

csiph-web