Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.2 - L/home/abuild/rpmbuild/BUILD/bash-4.2/../readline-6.2 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' - DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-suse-linux-gnu' - DCONF_VENDOR='suse' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL - DHAVE_CONFIG_H -I. -I. -I./include -I./lib -fmessage-length=0 -grecord- gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables - fasynchronous-unwind-tables -g -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g - Wuninitialized -Wextra -Wno-unprototyped-calls -Wno-switch-enum -Wno-unused- variable -Wno-unused-parameter -ftree-loop-linear -pipe -DBNC382214=0 - DIMPORT_FUNCTIONS_DEF=0 -fprofile-use uname output: Linux callahans 3.16.7-21-desktop #1 SMP PREEMPT Tue Apr 14 07:11:37 UTC 2015 (93c1539) x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-suse-linux-gnu
Bash Version: 4.2 Patch Level: 53 Release Status: release Description: bash includes characters of wrong case when globbing with ranges (i.e., [a-z]) after first instance. Repeat-By: gwb@callahans:/tmp/playground> ls -l total 0 -rw-r--r-- 1 gwb users 0 Aug 12 13:04 a -rw-r--r-- 1 gwb users 0 Aug 12 13:04 A -rw-r--r-- 1 gwb users 0 Aug 12 13:17 b -rw-r--r-- 1 gwb users 0 Aug 12 13:17 B gwb@callahans:/tmp/playground> echo ? # 4 files with one character names a A b B gwb@callahans:/tmp/playground> echo [ab] a b gwb@callahans:/tmp/playground> echo [abc] a b gwb@callahans:/tmp/playground> echo [a-c] a A b B gwb@callahans:/tmp/playground> #oops! gwb@callahans:/tmp/playground> shopt nocaseglob nocaseglob off gwb@callahans:/tmp/playground> echo [A-Z] A b B gwb@callahans:/tmp/playground> # Works once Also see my original complaint at https://bugzilla.opensuse.org/show_bug.cgi?id=940903