bug-bash
[Top][All Lists]
Advanced

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

Re: regression: extglobs expand hidden files in 4.3


From: Chet Ramey
Subject: Re: regression: extglobs expand hidden files in 4.3
Date: Thu, 20 Mar 2014 09:41:17 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 3/18/14 9:59 AM, Stephane Chazelas wrote:
> With bash-4.3 as found on Debian's 4.3-2 package:
> 
> $ bash -cO extglob 'echo *(.)'
> . ..
> $ bash -cO extglob 'echo *(foo)*'
> . .. a
> $ bash -cO extglob 'echo @(|foo)*'
> . .. a
> 
> 
> It looks like the regression was introduced by 4.3, as 4.2 doesn't exhibit the
> same problem.

Thanks for the report.  This was a too-aggressive attempt at optimizing the
match-dot-files check.  I took advantage of the situation to make the code
simpler and more robust.  Try the attached patch and see if it fixes
things for you; it does the right thing for me.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/

Attachment: extglob-skipname.patch
Description: Source code patch


reply via email to

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