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


Groups > gnu.bash.bug > #14525

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

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Nested extglob outputs "." ".."
Date Wed, 22 Aug 2018 08:31:16 -0400
Lines 15
Approved bug-bash@gnu.org
Message-ID <mailman.5404.1534941091.1292.bug-bash@gnu.org> (permalink)
References <d8f8c7e1-8b7e-956f-3428-6b7bf8870f0c@gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1534941092 28742 208.118.235.17 (22 Aug 2018 12:31:32 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Michal Pesa <pesathem@gmail.com>
Envelope-to bug-bash@gnu.org
Mail-Followup-To Michal Pesa <pesathem@gmail.com>, bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <d8f8c7e1-8b7e-956f-3428-6b7bf8870f0c@gmail.com>
User-Agent NeoMutt/20170113 (1.7.2)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 139.137.100.1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14525

Show key headers only | View raw


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.

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


Thread

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

csiph-web