Experiment 1: ------------------------------------ OS: Linux version 2.6.18.1.2007050801 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 1:3.3.5-13)) #2 SMP Tue May 8 16:16:05 EDT 2007 Sort version: sort (coreutils) 5.2.1 Input: T, tsv file, two columns
$ cat T Acer India /guid/9202a8c04000641f8000000000875b5c 20th Century Fox Animation /guid/9202a8c04000641f8000000000923a5a 20th Century Fox Television /guid/9202a8c04000641f8000000000d38838 20th Century Fox /guid/9202a8c04000641f8000000000136722 Acer Computer Australia /guid/9202a8c04000641f8000000000876087 Acer /guid/9202a8c04000641f800000000021b67f Acergy /guid/9202a8c04000641f8000000000f082b3 Acerinox /guid/9202a8c04000641f8000000000ddcbc9 Acer Laboratories Incorporated /guid/9202a8c04000641f8000000000c9f469 $ sort -t " " -k 1 T (it is tab, not space, i'm sure) 20th Century Fox Animation /guid/9202a8c04000641f8000000000923a5a 20th Century Fox /guid/9202a8c04000641f8000000000136722 (****************oops here*********************) 20th Century Fox Television /guid/9202a8c04000641f8000000000d38838 Acer Computer Australia /guid/9202a8c04000641f8000000000876087 Acer /guid/9202a8c04000641f800000000021b67f (****************oops here*********************) Acergy /guid/9202a8c04000641f8000000000f082b3 Acer India /guid/9202a8c04000641f8000000000875b5c Acerinox /guid/9202a8c04000641f8000000000ddcbc9 Acer Laboratories Incorporated /guid/9202a8c04000641f8000000000c9f469 Experiment 2: ------------------------------------ OS: Linux version 2.6.20-15-generic ([EMAIL PROTECTED]) (gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)) #2 SMP Sun Apr 15 07:36:31 UTC 2007 Sort version: sort 5.97 Input: same as the previous $ sort -t " " -k 1 T 20th Century Fox Animation /guid/9202a8c04000641f8000000000923a5a 20th Century Fox /guid/9202a8c04000641f8000000000136722 (****************oops here*********************) 20th Century Fox Television /guid/9202a8c04000641f8000000000d38838 Acer Computer Australia /guid/9202a8c04000641f8000000000876087 Acer /guid/9202a8c04000641f800000000021b67f (****************oops here*********************) Acergy /guid/9202a8c04000641f8000000000f082b3 Acer India /guid/9202a8c04000641f8000000000875b5c Acerinox /guid/9202a8c04000641f8000000000ddcbc9 Acer Laboratories Incorporated /guid/9202a8c04000641f8000000000c9f469 Experiment 3: ------------------------------------ OS: Linux version 2.4.27 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #2 SMP Fri Aug 12 15:27:40 EDT 2005 Sort version: sort (coreutils) 5.2.1 Input: same one $ sort -t " " -k 1 T 20th Century Fox /guid/9202a8c04000641f8000000000136722 20th Century Fox Animation /guid/9202a8c04000641f8000000000923a5a 20th Century Fox Television /guid/9202a8c04000641f8000000000d38838 Acer /guid/9202a8c04000641f800000000021b67f Acer Computer Australia /guid/9202a8c04000641f8000000000876087 Acer India /guid/9202a8c04000641f8000000000875b5c Acer Laboratories Incorporated /guid/9202a8c04000641f8000000000c9f469 Acergy /guid/9202a8c04000641f8000000000f082b3 Acerinox /guid/9202a8c04000641f8000000000ddcbc9 As you can see, the results of experiment 1 and 2 are wrong, while that of experiment 3 is what I expected. -- Thanks, Chen Jiusheng
T
Description: Binary data
_______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils