Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!philabs!mcvax!enea!ber
From: ber@enea.UUCP
Newsgroups: net.bugs.4bsd
Subject: Funny sort
Message-ID: <126@enea.UUCP>
Date: Wed, 6-Jul-83 17:03:55 EDT
Article-I.D.: enea.126
Posted: Wed Jul  6 17:03:55 1983
Date-Received: Fri, 8-Jul-83 06:07:07 EDT
Lines: 23

Can anyone explain why sort (version 4.2 in Berkeley 4.1) seems
to include the fiel separation character in the sorting.
Well, anyhow in this case. If a file contains

	a#b
	a1#b
	a2#b

and one sorts this with

	sort -t# file

the output is identical with that in the file. But if I change
all the #'s to :'s, and then sort -t: file, the output is

	a1:b
	a2:b
	a:b

(observing that #<1<2<:). I would expect the same result regardless
of the delimiter used.

	Bjorn Eriksen	(...!mcvax!enea!ber)