Re: inconsistent sort output between hosts
From: Alan (a.baker_at_deadspam.com)
Date: 07/28/04
- Next message: John Howells: "Re: inconsistent sort output between hosts"
- Previous message: Mathew Kirsch: "inconsistent sort output between hosts"
- In reply to: Mathew Kirsch: "inconsistent sort output between hosts"
- Next in thread: Mathew Kirsch: "Re: inconsistent sort output between hosts"
- Reply: Mathew Kirsch: "Re: inconsistent sort output between hosts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Jul 2004 15:13:03 GMT
mkirsch1@rochester.rr.com (Mathew Kirsch) wrote in
news:d6bf3430.0407280558.7e910d0b@posting.google.com:
> I'm stumped. From two otherwise identically-configured hosts, we get
> two completely different sort outputs:
>
> host 1:
> # ls | sort
> apple
> Banana
> Cherry
> donut
> eclair
>
> host 2:
> # ls | sort
> Banana
> Cherry
> apple
> donut
> eclair
>
> Both systems are using /usr/bin/sort. Both /usr/bin/sort files have
> the same sum, as do all the libraries shown by 'ldd /usr/bin/sum' on
> both systems. To my way of thinking, this is telling me that two
> otherwise identical setups are producing two different outputs!
>
man sort
Reformatting page. Wait... done
User Commands sort(1)
NAME
sort - sort, merge, or sequence check text files
<snip>
Ordering Options
The default sort order depends on the value of LC_COLLATE.
If LC_COLLATE is set to C, sorting will be in ASCII order.
If LC_COLLATE is set to en_US, sorting is case insensitive
except when the two strings are otherwise equal and one has
an uppercase letter earlier than the other. Other locales
will have other sort orders.
<snip>
Any help?
Alan
-- SPAM BLOCK IN USE! Replace 'deadspam.com' with penguinclub.org.uk to reply in email
- Next message: John Howells: "Re: inconsistent sort output between hosts"
- Previous message: Mathew Kirsch: "inconsistent sort output between hosts"
- In reply to: Mathew Kirsch: "inconsistent sort output between hosts"
- Next in thread: Mathew Kirsch: "Re: inconsistent sort output between hosts"
- Reply: Mathew Kirsch: "Re: inconsistent sort output between hosts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|