Bug 11383 - /bin/sort does not sort properly if -n switch is used
/bin/sort does not sort properly if -n switch is used
Product: Red Hat Linux
Classification: Retired
Component: textutils (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Depends On:
  Show dependency treegraph
Reported: 2000-05-12 05:54 EDT by Marko Hrastovec
Modified: 2008-05-01 11:37 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-06-28 06:17:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Marko Hrastovec 2000-05-12 05:54:09 EDT
/bin/sort program does not sort properly if -n switch is used.
If used without switches it seems to work fine. I haven't tried
other switches.


I hope you will fix the bug soon. I have copied some older sort
which works OK.
Comment 1 Preston Brown 2000-05-24 15:23:59 EDT
Bero, I can duplicate this problem.  Do we have a fix available yet?
Comment 2 Göran Uddeborg 2000-06-01 15:14:54 EDT
This is the same as 10570 and 11104 I assume.  (Marked resolved.)
Comment 3 Craig Martin 2000-06-08 00:02:07 EDT
Futher information on this problem - We have found that there is a patch in Red
Hat 6.2 that provides the '-l' flag.  This seems to cause 'sort -n' to skip
sections of code and produce a bad sort if the '-l' flag is not actually used. 
If it is used the program works OK.  - Craig Martin
Comment 4 peter.benie 2000-06-28 06:17:41 EDT
For me, adding -l to the arguments does not solve the problem.
Comment 5 Bernhard Rosenkraenzer 2000-08-08 12:59:07 EDT
Use LANG="C" sort if you don't like the POSIX sorting "feature".

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