[Top][All Lists]

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

'nocaseglob' does not work in 'case' or '[[...]]'

From: William Park
Subject: 'nocaseglob' does not work in 'case' or '[[...]]'
Date: Mon, 14 Feb 2005 15:55:29 -0500

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' 
-DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib   -O4 -march=i686
uname output: Linux node1 2.6.11-rc4-test #5 SMP Sun Feb 13 21:41:22 EST 2005 
i686 unknown unknown GNU/Linux
Machine Type: i686-pc-linux-gnu

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

        Not sure if it's bug... but, 'nocaseglob' does not work in
        'case' statement or in '[[...]]' expression.  Manpage says it


        shopt -s nocaseglob

        case Up in
            up) echo yes ;;

        [[ Up == up ]] && echo yes

    If the glob matching is case-insensitive, then 'yes' should be
    printed.  But, nothing is printed.

reply via email to

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