Package: dash
Version: 0.5.7-3
Severity: serious

According to IEEE Std 1003.1-1996, IEEE Std 1003.2-1992, and the Base
Specifications of The Open Group Single UNIX Specification, Version 2.
Shell and Utilities volume (XCU).
2.13.3 Patterns Used for Filename Expansion

If the pattern matches any existing filenames or pathnames, the pattern
shall be replaced with those filenames and pathnames, sorted according to the
collating sequence in effect in the current locale.

Most shells follow this standard in _sorting_ part, but dash doesn't.
In my locale a < A, but dash doesn't think so.

$ mkdir /tmp/a
$ cd /tmp/a
$ touch a aa aaa A aA Aa AA
[zsh]$ echo * 
a A aa aA Aa AA aaa
[bash]$ echo *
a A aa aA Aa AA aaa
[dash]$ echo *
A AA Aa a aA aa aaa

I marked this bug as serious because it breaks POSIX in really core package.

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (680, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/dash

Versions of packages dash depends on:
ii  debianutils  4.3.2
ii  dpkg         1.16.9
ii  libc6        2.13-37

dash recommends no packages.

dash suggests no packages.

-- debconf information:
* dash/sh: true


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to