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


Groups > gnu.bash.bug > #14525 > unrolled thread

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

Started byGreg Wooledge <wooledg@eeg.ccf.org>
First post2018-08-22 08:31 -0400
Last post2018-08-22 08:31 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Nested extglob outputs "." ".." Greg Wooledge <wooledg@eeg.ccf.org> - 2018-08-22 08:31 -0400

#14525 — Re: Nested extglob outputs "." ".."

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2018-08-22 08:31 -0400
SubjectRe: Nested extglob outputs "." ".."
Message-ID<mailman.5404.1534941091.1292.bug-bash@gnu.org>
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.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web