bug-coreutils
[Top][All Lists]
Advanced

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

Re: the bugs of sort ?


From: Eric Blake
Subject: Re: the bugs of sort ?
Date: Fri, 06 Oct 2006 06:18:29 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Guan, Hao SLC SBS PEK on 10/6/2006 1:30 AM:
> By the way, the version infomation of the "sort" is as below:
>  
> address@hidden Access]$ sort --version
> sort (coreutils) 4.5.3

You could use an upgrade - the latest stable version is 6.3, and it is
several years newer.

>  
> My expectation of the result should be as below because letter "a" is
> bigger than the space character in ASCII value :

Ah, but does your locale sort by ASCII?  Try again with LC_ALL=C in the
environment, and read
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-does-not-sort-in-normal-order_0021
It is not a bug in sort, but a misunderstanding on your part.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFJkmV84KuGfSFAYARAqp0AJ9lDxuYo2wsLJAiPp5hmBXxvbs16ACdFtfr
t/DowtKptohxJuAJ/Vsp4QM=
=k0MG
-----END PGP SIGNATURE-----




reply via email to

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