[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I think sort has a bug
From: |
Bob Proulx |
Subject: |
Re: I think sort has a bug |
Date: |
Wed, 21 May 2008 10:43:05 -0600 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Dai, Manhong wrote:
> I think I found a bug of sort. the command is
>
> echo -e "a0 1\na 1\na1 1" | sort
> a0 1
> a 1
> a1 1
>
> Is this wrong?
The result is dependent upon your configured locale. The above is
correct in a locale that ignores punctuation such as en_US. Please
see this reference for more information.
http://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021
Bob