Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 687 - sort with a key broken
Summary: sort with a key broken
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: textutils
Version: 5.2
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-01-05 00:35 UTC by H. Peter Anvin
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-01-05 20:59:33 UTC

Attachments (Terms of Use)

Description H. Peter Anvin 1999-01-05 00:35:36 UTC
"sort" returns the wrong answer when used with a key
specifier.  Since "sort" is used by many scripts, this could
have severe implications:

linux 28 % cat /tmp/test
Alpha Charlie
Bravo Delta
Alpha Foxtrot
Bravo Echo
linux 29 % sort +6 /tmp/test
Alpha Charlie
Alpha Foxtrot
Bravo Delta
Bravo Echo
linux 30 % which sort
linux 31 % rpm -qf /bin/sort

Comment 1 Jeff Johnson 1999-01-05 20:59:59 UTC
This is not a problem for a key specifier in range (i.e try "sort +1")

Note You need to log in before you can comment on or make changes to this bug.