Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11343
| Path | csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.ripco.com!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | George Baltz <geobaltz@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Bash ignores case when globbing with character ranges |
| Date | Thu, 13 Aug 2015 10:37:15 -0400 |
| Lines | 54 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.8268.1439487139.904.bug-bash@gnu.org> (permalink) |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="us-ascii" |
| Content-Transfer-Encoding | 7Bit |
| X-Trace | usenet.stanford.edu 1439487139 30464 208.118.235.17 (13 Aug 2015 17:32:19 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding:content-type; bh=Y9pQm4+lcOXd0OvOf77spuQ5gsmnbjNancS7sygrz1w=; b=vQOeltNCJnqybbSvAE/HE7EwuC2iAt3P8lvJrzVJj+09C2OM36VUnMfa/5K0bO+y8N dBirjZg1aG5ZDq8RBGDbEfY7IM5pfz9pkckF1zSvhAveh4JIUlst6ITEQUZGI2Zlye2m jXtlvdn/5OT8cAfxFDQtmzau47TzlitjUyHAonsW7qlp44P54G/bqdi5ahf6tCAzOZ8f O+dAhQk8SL4khGa01bhXJjkX8W7jztRiLay21Jha5xshHmBFvJkQGVZ8TagZMfYaolbs 11w7/XBArHgfdIi54yFnhCk4k/ldADxPxdaAoS55J3zav/lTFTRR8wcLITcYgHD0MPSS cOCA== |
| X-Received | by 10.107.10.214 with SMTP id 83mr4710916iok.120.1439476636074; Thu, 13 Aug 2015 07:37:16 -0700 (PDT) |
| User-Agent | KMail/4.14.9 (Linux/3.16.7-21-desktop; KDE/4.14.9; x86_64; ; ) |
| X-detected-operating-system | by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). |
| X-Received-From | 2607:f8b0:4001:c06::22f |
| 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:11343 |
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 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
Back to gnu.bash.bug | Previous | Next | Find similar
Bash ignores case when globbing with character ranges George Baltz <geobaltz@gmail.com> - 2015-08-13 10:37 -0400
csiph-web