Package: bash
Version: 4.2+dfsg-0.1
Severity: important
Dear Maintainer,
Out of the box installation of debian 7.0 i386 (also seen on amd64).
The bracketed range matching does not work with the installed bash version.
Interestingly, expected results are found if the range ("-") is not used.
I saw no indication that this problem was identified, and am frankly surprised
that no-one has written it up.
I set it as important since it seems to me that
this is a pretty basic function, but maybe scripts using it are generally
written for sh or dash.
I also noted the problem on the prior debian release.
The problematic behavior is shown here (using the source tree root for bash):
=================== start of example of bash behavior ==================
bg@debmicro:/usr/local/src/bash-4.2$ cd /usr/local/src/bash-4.2
bg@debmicro:/usr/local/src/bash-4.2$ ls [KLM]*
Makefile Makefile.in MANIFEST MANIFEST.doc
bg@debmicro:/usr/local/src/bash-4.2$ ls [K-M]*
list.c mailcheck.c make_cmd.c Makefile MANIFEST mksyntax.c
locale.c mailcheck.h make_cmd.h Makefile.in MANIFEST.doc
lib:
glob intl malloc readline sh termcap tilde
bg@debmicro:/usr/local/src/bash-4.2$
=================== end of example of bash behavior ==================
Please note that sh has the following behavior, which is what I expect:
=================== start of example of sh behavior ==================
bg@debmicro:~$ sh
$ cd /usr/local/src/bash-4.2
$ ls [K-M]*
Makefile Makefile.in MANIFEST MANIFEST.doc
$
=================== end of example of sh behavior ==================
I hope this is useful.
Thanks and regards -
Bruce.
-- System Information:
Debian Release: 7.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages bash depends on:
ii base-files 7.1
ii dash 0.5.7-3
ii debianutils 4.3.2
ii libc6 2.13-38
ii libtinfo5 5.9-10
Versions of packages bash recommends:
ii bash-completion 1:2.0-1
Versions of packages bash suggests:
pn bash-doc <none>
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]