bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Iconsistent ls sorting with and without `v'


From: Andrey Borzenkov
Subject: Iconsistent ls sorting with and without `v'
Date: Fri, 9 May 2003 19:29:01 +0400
User-agent: KMail/1.5

info ls

`-v'
`--sort=version'
     Sort by version name and number, lowest first.  It behaves like a
     default sort, except that each sequence of decimal digits is
     treated numerically as an index/version number.  (*Note More
     details about version sort::.)

where default sort is defined as ...

   By default, the output is sorted alphabetically, according to the
locale settings in effect.

{pts/2}% ls
a  A  b  B  c  C
{pts/2}% ls -v
A  B  C  a  b  c
{pts/2}% echo $LANG
ru_RU.KOI8-R

The first output (without -v) is correct according to locale setings (I do not 
like this order but it is not related to the problem :)

{pts/2}% LC_ALL=C ls --version
ls (coreutils) 4.5.7
{pts/2}% rpm -q coreutils
coreutils-4.5.7-1mdk

-andrey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]