Hi, Setting LC_ALL to C fixed the issue. But before setting this to C, with same .cshrc file, Unix didn't give me a problem.
Does it mean my shell script which has this sort command will not work for others unless they set their LC_ALL? Should I set this to C in my script itself? Any other suggestion? Thanks, George -----Original Message----- From: George Thomas Irimben (georgeti) Sent: Wednesday, August 04, 2010 1:33 AM To: '[email protected]' Subject: Problem(bug?) with basic sort command in Linux Hi, I would like to report a problem(bug?) I am facing with sort command in Linux. Sorting of a simple text file using simple sort command is giving me incorrect result. Here is the problem: Text file to sort has 3 lines my-lnx7% cat y abc/d,ABC abc/,XYZ abc/o,MNO sort command from Linux is giving me below result(According to me, this result is incorrect) my-lnx7% sort y abc/d,ABC abc/o,MNO abc/,XYZ But, result expected is as below. Because "," is ahead of "d" in ASCII table. Same found working on Unix using same input file, same command line. abc/,XYZ abc/d,ABC abc/o,MNO Pls let me know if this is a problem in Linux or I am missing something. Thanks, George
