[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [a-f]* style globbing broken
From: |
Chet Ramey |
Subject: |
Re: [a-f]* style globbing broken |
Date: |
Wed, 15 Apr 2009 22:34:47 -0400 |
User-agent: |
Thunderbird 2.0.0.21 (Macintosh/20090302) |
serenity@exscape.org wrote:
> Bash Version: 4.0
> Patch Level: 17
> Release Status: release
>
> Description:
> When using [a-*] globbing options, the very last UPPERCASE letter is
> not matched, however all other ones are.
>
> Repeat-By:
> mkdir test; cd test; for LETTER in {a..f}; do touch $LETTER; done
> ls -1 [a-f]* | wc -l # returns 6, as expected
> for LETTER in {A..F}; do touch $LETTER; done
> ls -1 [a-f]* | wc -l # returns 11! If we return the wc pipe, we can see
> that the output is "a A b B ... e E f" without the capital F.
Please read the Bash FAQ, question E9.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/