Bug 687 - sort with a key broken
Summary: sort with a key broken
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: textutils
Version: 5.2
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
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:
Environment:
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
/bin/sort
linux 31 % rpm -qf /bin/sort
textutils-1.22-7

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.