Package: coreutils
Version: 7.1-2
Severity: normal

Since upgrading to coreutils 7.1, ls -v no longer sorts correctly;
specifically, some dotfiles now appear at the end rather than with the
other dotfiles.  I use LC_COLLATE=C, so this does not represent a locale
problem.

The correct sorting, with coreutils 6.10-6:

$ ls -a -v
..  ..  .0  .9  .A  .Z  .a  .z  0  9  A  Z  a  z

The incorrect sorting, With coreutils 7.1-2:

$ ls -a -v
..  .A  .Z  .a  .z  0  9  A  Z  a  z  .0  .9  ..

Notice that .0, .9, and .. moved to the end.

The NEWS file for coreutils says:

  ls -v now uses filevercmp function as sort predicate (instead of strverscmp)

This seems like a likely culprit.

- Josh Triplett

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages coreutils depends on:
ii  libacl1                       2.2.47-2   Access control list shared library
ii  libattr1                      1:2.4.43-2 Extended attribute shared library
ii  libc6                         2.9-4      GNU C Library: Shared libraries
ii  libselinux1                   2.0.71-1   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