Bug 11104 - The `-n' flag to sort does not work properly
The `-n' flag to sort does not work properly
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: textutils (Show other bugs)
6.2
All Linux
medium Severity high
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
:
: 11685 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-04-28 14:54 EDT by mw
Modified: 2008-05-01 11:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-05-05 09:52:25 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description mw 2000-04-28 14:54:09 EDT
Consider the following outputs:

$ cat number
1
12
10
8

$ sort -n number
8
10
12
1

This does not look like the numerical order---the flag `-g' shows what I
wanted to see:

$ sort -g number
1
8
10
12

I do not see the problem on RH 6.1 which has textutils-2.0 and not
textutils-2.0a

Mate
Comment 1 mw 2000-04-28 17:07:59 EDT
It turns out that compiling textutils-2.0a from sources results in a sort which
does not show the bug.

# ./textutils-2.0a/src/sort -n ~mw/number
1
8
8
10
10
12

So the bug got introduced by the patches RH applied.

Mate
Comment 2 Bernhard Rosenkraenzer 2000-05-05 09:52:59 EDT
Thanks, fixed in rawhide
Comment 3 Bernhard Rosenkraenzer 2000-06-12 16:35:23 EDT
*** Bug 11685 has been marked as a duplicate of this bug. ***

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