Bernd Klein <[EMAIL PROTECTED]> writes: > which is what I expect to happen, but if I use "sort -g +1 -2 example.txt" > (-g according to man page: compare according to general numerical value) > I get the confusing result: > blabla 0.5 abcd > xyz2 0.4 df > xyz3 0.1 xyz5 > xyz4 0.002 bal > xyz5 0.1 xyz2 > bal 1 trt > xyz 1 ggg > xya 3 trt > sdf 4 trc
You are probably using a locale that uses a comma as the decimal sign. Thus the sort key for all lines where the number starts with "0." is 0, while preserving the relative order of each of them. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstra�e 5, 90409 N�rnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
