On Sun, Jan 25, 2004 at 12:07:11PM +0100, Matthias Klose wrote:
Tobias writes:
Attached is a small script that shows the difference between the too.
Personally I think the tcsh is better sorted because of the difference
between "A" and "a".
bash's behaviour is different than tcsh, dash, zsh, ksh.
bash --norc
LANG=sv_SE
power-post-setup.bmp
ls: [A-Z][A-Z]*: No such file or directory
ls: [A-Z][A-Z]*: No such file or directory
all other shells don't show the file with the lowercase letter.
reading bash(1)'s Environment section, one might think, that
explicitely setting LC_CTYPE would help, but it does not:
LC_COLLATE=C would be what makes the difference, I'd've thought?
$ export LANG=en_GB.ISO-8859-1
$ ls -d [A-Z][A-Z]*
bin debian misc mp3 public_html src tmp
$ export LC_COLLATE=C
$ ls -d [A-Z][A-Z]*
ls: [A-Z][A-Z]*: No such file or directory