NetBSD Problem Report #225
From gnats Sun Apr 17 21:17:55 1994
Received: from cis-ts3-slip6.cis.brown.edu (root@cis-ts3-slip6.cis.brown.edu [128.148.19.60]) by sun-lamp.cs.berkeley.edu (8.6.8/8.6.6) with ESMTP id VAA08076 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sun, 17 Apr 1994 21:17:53 -0700
Message-Id: <199404180418.AAA00783@cis-ts3-slip6.cis.brown.edu>
Date: Mon, 18 Apr 1994 00:18:30 -0400
From: Mark Weaver <mhw@cs.brown.edu>
Reply-To: mhw@cs.brown.edu
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: sort(1) ignores sorting keys
X-Send-Pr-Version: 3.2
>Number: 225
>Category: bin
>Synopsis: sort(1) ignores sorting keys
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: mhw
>Arrival-Date: Sun Apr 17 21:20:01 +0000 1994
>Closed-Date: Tue Apr 19 03:47:53 +0000 1994
>Last-Modified:
>Originator: Mark Weaver
>Release: current-940412
>Organization:
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu | Brown University
PGP Key: finger mhw@cs.brown.edu | Dept of Computer Science
>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.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: cgd
State-Changed-When: Mon Apr 18 20:47:53 PDT 1994
State-Changed-Why:
sender convinced that bug report was in error.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.