bug-bash
[Top][All Lists]
Advanced

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

Bash ignores case when globbing with character ranges


From: gwb
Subject: Bash ignores case when globbing with character ranges
Date: Thu, 13 Aug 2015 10:15:18 -0400 (EDT)

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 the first instance.

Repeat-By:
        
address@hidden:/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
address@hidden:/tmp/playground> echo ?
a A b B
address@hidden:/tmp/playground> echo [ab]
a b
address@hidden:/tmp/playground> echo [abc]
a b
address@hidden:/tmp/playground> echo [a-c]
a A b B
address@hidden:/tmp/playground> shopt nocaseglob
nocaseglob      off
address@hidden:/tmp/playground> echo [A-Z]
A b B


Also see my original complaint at
https://bugzilla.opensuse.org/show_bug.cgi?id=940903



reply via email to

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