I think you have the nocaseglob right. I think this is a variable set
but not exported problem. Just guessing though.
Excellent guess. No cigar, tho:
$ echo [a-z]*
bin bk-archives Bugzilla core cron Desktop [[...]]
$ LC_COLLATE=C echo [a-z]*
bin bk-archives Bugzilla core cron Desktop [[...]]
$ set | egrep '^L'
LESS=-eMagis
LIBDIR=/home/usr/bkorb/Linux-i686/lib
LINES=70
LOGNAME=bkorb
$ LC_COLLATE=C ; echo [a-z]*
bin bk-archives core cron [[...]]
$ echo $BASH_VERSION
3.1.17(1)-release
I hope that is your problem. A set but not exported LC_COLLATE
variable. Definitely easy to miss.
Yep. That is easy to miss. Nope. That's not the problem.
Apparently you are _REQUIRED_ to export LC_COLLATE with the value "C".
That's just wrong. Was that really intended? (I confess to having been using
ksh until recently, so if this is a long standing tradition, I
wouldn't have noticed.)
Thanks for your help - Bruce