bug-bash
[Top][All Lists]
Advanced

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

no case sensitive file name expansion


From: Arthur Andree
Subject: no case sensitive file name expansion
Date: Thu, 29 Jan 2004 20:50:26 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114

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' \
                     -DSHELL \
                     -DHAVE_CONFIG_H \
                     -I.  -I. -I./include -I./lib \
                     -D_FILE_OFFSET_BITS=64 \
                     -O2 -g -pipe -march=i386 -mcpu=i686
uname output: Linux btrtxa 2.4.22-1.2140.nptl #1 Tue Jan 6 20:20:25 EST 2004
                                              # i686 athlon i386 GNU/Linux
Machine Type: i386-redhat-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
        Hello my friends!
        When I try to tell my bash to expand a case sensitive pattern refering
        to file names, than bash gets to many matches, i.e.
            rm [a-c]* also removes files called BBB.
        Have fun,
        Arthur.

Repeat-By:
        mkdir bash_bug          #for safty purpose only
        cd bash_bug
        bash
        shopt -u nocaseglob     #should lead to case sensitive file name
                                # expansion on ? * [...]
        touch aaa AAA Aaa aAA   #create some files
        touch bbb BBB

        echo [a-b]*             #should give 3 files:   aaa aAA bbb
                                #  result is:           aaa aAA Aaa AAA bbb
        echo [a-c]*             #should give 3 files:   aaa aAA bbb
                                #  result is:           aaa aAA Aaa AAA bbb BBB
        echo [A-B]*             #should give 3 files:   Aaa AAA BBB
                                #  result is:           Aaa AAA bbb BBB

        exit





reply via email to

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