Bash built from gentoo ebuild (bash-3.0-r11) expands glob patterns case-insensitive (even with nocaseglob off). To reproduce: touch testa testb testc testA testB testC ls test[A-Z] Results: testa testb testc testA testB testC Expected results: testA testB testC Bash built from source (without any fancy options) works as expected. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12 i686) ================================================================= System uname: 2.6.12 i686 Intel(R) Pentium(R) M processor 1.70GHz Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O3 -mcpu=i686 -pipe -mmmx -msse -msse2 -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium-m -O3 -mcpu=i686 -pipe -mmmx -msse -msse2 -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://mirror.aiya.ru/pub/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.rhnet.is/pub/gentoo/" LANG="en_US.UTF-8" LC_ALL="" LINGUAS="en ru" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X aac acpi alsa apache2 avi berkdb bitmap-fonts bzip2 bzlib caps cardbus cdr cjk crypt cups curl dba doc dts dvd dvdr emboss encode esd fam fbcon flac font-server foomaticdb fortran gd gdbm gif gnome gpm gtk gtk2 gtkhtml guile imagemagick ipv6 jack java javascript jpeg ladspa lcd libg++ libwww mad matroska mikmod mmx mmxext mng motif mozilla moznocompose moznoirc mp3 mpeg mysql ncurses nls nptl offensive ogg oggvorbis opengl oscar oss pam pdflib perl php png python qt quicktime readline rtc samba sdl spell sqlite sse sse2 ssl svg svgz tcpd tiff truetype truetype-fonts type1-fonts unicode userlocales utf8 vorbis wifi win32codecs xml2 xmms xosd xprint xv yahoo zlib linguas_en linguas_ru userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
works fine for me can you verify nocaseglob is actually turned off ? just run 'shopt nocaseglob' to see current state
i had this option off, and i checked with shopt in the first place. since i first noticed this bug, i compiled bash without any configure options and have used it since. strange thing - i emerged bash again right now, and it works fine (no such bug). i don't know if i was using bash-3.0-r11 before, maybe i was using some earlier version that had this bug.