According to John Cowan on 4/23/2007 8:50 PM: > Given the input (without the leading spaces) > > Test Case:#1 > Test:#2 > > the command "LC_ALL=C sort -t: -k1" outputs the same, though the > key "Test" should sort before "Test Case".
Did you mean to use -k1,1 instead of -k1? Otherwise, you are stating that the key begins with the first field, but continues through the end of the line (with the field separators ignored), and since ' ' comes before '#', the output looked correct to me. Using -k1,1 swaps the line to list #2 first. -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED]
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils