bug-bash
[Top][All Lists]
Advanced

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

Re: *(.*) matches wrongly when dotglob unset


From: Chet Ramey
Subject: Re: *(.*) matches wrongly when dotglob unset
Date: Fri, 02 Dec 2011 16:11:55 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 11/29/11 9:53 AM, Yongzhi Pan wrote:
> Producing the bug:
> 
> tux@dell:~$ shopt -s extglob
> tux@dell:~$ shopt -u dotglob
> tux@dell:~$ ls -d *(.*)
> ls: cannot access *(.*): No such file or directory
> tux@dell:~$ touch '*(.*)'
> tux@dell:~$ ls -d *(.*)
> *(.*)
> 
> I think even if dotglob is unset *(.*) should still matches all dotfiles.

Thanks for the report.  This turned into a rather more complicated fix
than I anticipated.  The fix will be in the next release of bash.

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/



reply via email to

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