bug-coreutils
[Top][All Lists]
Advanced

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

Re: sort bug ?


From: Eric Blake
Subject: Re: sort bug ?
Date: Tue, 10 Oct 2006 06:46:28 -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 Tanguy Urvoy on 10/10/2006 6:19 AM:
> address@hidden data]$ cat > sort.buggy
> zogzog tralala
> zogzogzog zogzog
> zogzog zulu
> address@hidden data]$ sort -k1 sort.buggy
> zogzog tralala
> zogzogzog zogzog
> zogzog zulu

Probably not a bug in sort, but a gap in your understanding.
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-does-not-sort-in-normal-order_0021

Try 'LC_ALL=C sort -k1 sort.buggy' for the behavior you seem to be wanting.

> address@hidden data]$ sort --version
> sort (GNU coreutils) 5.96

For what it's worth, the latest stable version is now at 6.3.

- --
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

iD8DBQFFK5Yk84KuGfSFAYARAkufAKCWR6cJGHRbqt2QNW1eaycEAcWblQCfSaU3
TO/b6Xvjl4gFa+ntv/tOXmg=
=b5yj
-----END PGP SIGNATURE-----




reply via email to

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