Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11344

Bash ignores case when globbing with character ranges

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail
From gwb@callahans.site
Newsgroups gnu.bash.bug
Subject Bash ignores case when globbing with character ranges
Date Thu, 13 Aug 2015 10:15:18 -0400 (EDT)
Lines 41
Approved bug-bash@gnu.org
Message-ID <mailman.8269.1439487140.904.bug-bash@gnu.org> (permalink)
NNTP-Posting-Host lists.gnu.org
X-Trace usenet.stanford.edu 1439487140 30465 208.118.235.17 (13 Aug 2015 17:32:20 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 67.234.153.187
X-Mailman-Approved-At Thu, 13 Aug 2015 13:32:18 -0400
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11344

Show key headers only | View raw


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:
	
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 ?
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> shopt nocaseglob
nocaseglob      off
gwb@callahans:/tmp/playground> echo [A-Z]
A b B


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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Bash ignores case when globbing with character ranges gwb@callahans.site - 2015-08-13 10:15 -0400

csiph-web