bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pathname expansion in brackets inconsistent for German locale


From: Dr. Henrik Seidel
Subject: Pathname expansion in brackets inconsistent for German locale
Date: Thu, 2 Dec 2004 11:17:38 +0100

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: i386-redhat-linux-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' 
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  -D_FILE_OFFSET_BITS=64 -O2 -g 
-pipe -m32 -march=i386 -mtune=pentium4
uname output: Linux bea379.schering.de 2.6.9-1.681_FC3 #1 Thu Nov 18 15:10:10 
EST 2004 i686 i686 i386 GNU/Linux
Machine Type: i386-redhat-linux-gnu

Bash Version: 3.0
Patch Level: 14
Release Status: release

Description:
        Pathname expansion of the type [A-Z] disregards the case of file names,
        but it does not do this under all circumstances (see below).

Repeat-By:

        Note that the third command returns "list.txt" which it should not do.
        Also note that "[K-L]*.txt" returns "list.txt", whereas "[L-M]*.txt"
        does not.

        -> export LANG=de_DE
        -> ls
        GEN.txt  GEX.txt  list.txt  PRO.txt  RES.txt  SAM.txt
        -> ls [A-Z]*.txt
        GEN.txt  GEX.txt  list.txt  PRO.txt  RES.txt  SAM.txt
        -> ls [L-M]*.txt
        ls: [L-M]*.txt: Datei oder Verzeichnis nicht gefunden
        -> ls [K-L]*.txt
        list.txt

        This has to do with sorting:

        -> export LC_COLLATE=C
        -> ls
        GEN.txt  GEX.txt  PRO.txt  RES.txt  SAM.txt  list.txt
        -> ls [A-Z]*.txt
        GEN.txt  GEX.txt  PRO.txt  RES.txt  SAM.txt
        -> ls [L-M]*.txt
        ls: [L-M]*.txt: Datei oder Verzeichnis nicht gefunden
        -> ls [K-L]*.txt
        ls: [K-L]*.txt: Datei oder Verzeichnis nicht gefunden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]