bug-coreutils
[Top][All Lists]
Advanced

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

Re: sort command does not deal with blanks correctly


From: Matthew Woehlke
Subject: Re: sort command does not deal with blanks correctly
Date: Thu, 16 Nov 2006 15:53:24 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.0

address@hidden wrote:
in Solaris, for example (and in perl, etc.)
ae
ac
a l
az
sorts to
a l
ac
ae
az

which is correct, since the space character is lexigraphically less than any
alphanumeric character

but gnu sort (linux) seems to ignore the blanks entirely, resulting in
ac
ae
a l
az

getting a different result is a real pain!
Is there any option that makes 'sort' behave as the man page claims it does?

From the man page:

> *** WARNING *** The locale specified by the environment affects sort
> order.  Set LC_ALL=C to get the traditional sort order that uses
> native byte values.

...did you try this?

--
Matthew
"What's Cygwin?" you ask.
'Tis mostly absurd software
Concerning hippos.





reply via email to

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