Bug 11383

Summary: /bin/sort does not sort properly if -n switch is used
Product: [Retired] Red Hat Linux Reporter: Marko Hrastovec <marko.hrastovec>
Component: textutilsAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 6.2CC: craig.martin, kreucher, pbrown, peter.benie
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-06-28 10:17:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marko Hrastovec 2000-05-12 09:54:09 UTC
/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.

Regards
Marko

PS.
I hope you will fix the bug soon. I have copied some older sort
which works OK.

Comment 1 Preston Brown 2000-05-24 19:23:59 UTC
Bero, I can duplicate this problem.  Do we have a fix available yet?

Comment 2 Göran Uddeborg 2000-06-01 19:14:54 UTC
This is the same as 10570 and 11104 I assume.  (Marked resolved.)


Comment 3 Craig Martin 2000-06-08 04:02:07 UTC
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 10:17:41 UTC
For me, adding -l to the arguments does not solve the problem.
(textutils-2.0a-2)


Comment 5 Bernhard Rosenkraenzer 2000-08-08 16:59:07 UTC
Use LANG="C" sort if you don't like the POSIX sorting "feature".