Subject: bin/225: sort(1) ignores sorting keys
To: None <gnats-admin>
From: Mark Weaver <mhw@cs.brown.edu>
List: netbsd-bugs
Date: 04/17/1994 21:20:02
>Number:         225
>Category:       bin
>Synopsis:       sort(1) ignores sorting keys
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   mhw
>Arrival-Date:   Sun Apr 17 21:20:01 1994
>Originator:     Mark Weaver
>Organization:
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu           | Brown University
PGP Key: finger mhw@cs.brown.edu       | Dept of Computer Science
>Release:        current-940412
>Environment:

System: NetBSD cis-ts3-slip6.cis.brown.edu 0.9a EXCELSIOR#0 i386

>Description:
	As far as I can tell, sort(1) completely ignores the sorting
	keys passed to it.  No matter what fields you tell it to sort
	by, it uses the entire line as a key.

>How-To-Repeat:
mhw ~ % cat > t
a a a ab
a a a aa
mhw ~ % sort +0 -1 t
a a a aa
a a a ab
mhw ~ % cat > t
b a a ab
a a a ab
mhw ~ % sort +1 -2 t
a a a ab
b a a ab

>Fix:
I haven't looked at it yet.
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------