Colin Watson writes:
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
ok, thanks. Any idea, why de_DE and sv_SE is different in the first case?
You're both right. LC_COLLATE is the applicable environment variable, and bash-2.05b misbehaves when LANG is assigned a value after one of the LC_* variables.
The LANG precedence problem will be fixed in the next release.
Chet
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

