Comment 2 for bug 571958

Revision history for this message
StephanBeal (sgbeal) wrote : Re: DATA LOSS: "rm" command working case-insensitively

i can reproduce this on 9.10, but can find no option (e.g. in /etc/profile or /etc/bash*) which mucks with the wildcard expansion.

root@jareth:/home/root# touch XYZ
root@jareth:/home/root# ls [a-z]*
XYZ

i have often relied on case-sensitive wildcard matching over the years, and am just appalled at this behaviour :(. (And still sick to my stomach from the first 'rm'.)

Here is, for comparison, behaviour from one of the sourceforge shell servers:

-bash-3.2$ ls
R bin libfunutil mycrontab qub_icon.gif sf_bookmarks.html toc
ape cm libfunutil-cvsroot.tar.gz qub s11n tmp userweb
-bash-3.2$ ls -d [A-Z]*
R
-bash-3.2$ ls -d [a-z]*
ape cm libfunutil-cvsroot.tar.gz qub s11n tmp userweb
bin libfunutil mycrontab qub_icon.gif sf_bookmarks.html toc
-bash-3.2$ uname -a
Linux shell-24007 2.6.18-164.2.1.el5.028stab066.10 #1 SMP Sat Dec 12 18:52:53 MSK 2009 x86_64 x86_64 x86_64 GNU/Linux
-bash-3.2$ cat /etc/issue
CentOS release 5.4 (Final)
Kernel \r on an \m