bug-bash
[Top][All Lists]
Advanced

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

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


From: Greg Wooledge
Subject: Re: Nested extglob outputs "." ".."
Date: Wed, 22 Aug 2018 08:31:16 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, Aug 22, 2018 at 09:57:19AM +0200, 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 appears to be fixed already in bash 5.0-alpha.



reply via email to

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