Problem with Globbing
I created 2 files:
Code:
touch Test.txt test.txt Code:
ls -l Code:
ls -l [a-z]* Code:
ls -l [[:lower:]]* Thoughts? |
Code:
user@host:/tmp/a$ touch Test.txt test.txt what kind of shell/os is it? additionally would be nice to post not only parts of the result, but the full commands as I did it. |
Bash 4.2 on both Ubuntu 18.04 and CentOS
|
this is related to shopt nocaseglob and the variable LANG. see for example here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=37971
|
Yep! unset LANG results in desired behavior. Good catch!
|
All times are GMT -5. The time now is 02:02 PM. |