Package: coreutils
Version: 7.4-2
Severity: normal

'ls -v' sorts some names in a weird order:

$ cd $(mktemp -d)
$ touch foo.{x,x-y,z}
$ ls -1
foo.x
foo.x-y
foo.z
$ ls -v1
foo.x
foo.z
foo.x-y
$ locale | grep ^LC_COLLATE
LC_COLLATE="POSIX"
$

If I understand the documentation correctly, ls should sort names not
containing numerical components in the same order with and without the '-v'
option, which isn't the case.

The bug is also present in coreutils 7.5-1.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (400, 'unstable'), (300, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.30 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages coreutils depends on:
ii  libacl1                       2.2.48-1   Access control list shared library
ii  libattr1                      1:2.4.44-1 Extended attribute shared library
ii  libc6                         2.9-25     GNU C Library: Shared libraries
ii  libselinux1                   2.0.85-2   SELinux shared libraries

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to