Red Hat Bugzilla – Bug 61740
glob patterns match wrong case
Last modified: 2007-04-18 12:41:07 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901
Description of problem:
I am astonished. Globbing has been broken. Good trick.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
3.See B in the list.
4.Marvel at the lossage.
Actual Results: redhat 81 % touch B
redhat 82 % echo [a-c]*
redhat 83 %
Expected Results: [a-c] should not match B. In my test, the output should be
That's because bash is locale aware and you're using a case insensitive locale.
If you don't like it, export LC_COLLATE=C
If you want to get rid of it permanently, add LC_COLLATE=C to /etc/sysconfig/i18n.