The subject says it all. Example:

work-uhlar: cat test
aaaaa
aaaa1
aaaaa1

work-uhlar: sort test
aaaa1
aaaaa
aaaaa1

This is sorted OK...

work-uhlar: cat test
aaaaa:
aaaa1:
aaaaa1:

work-uhlar: sort test
aaaa1:
aaaaa1:
aaaaa:

this is OK. 

work-uhlar: sort -t: test
aaaa1:
aaaaa1:
aaaaa:

work-uhlar: sort -t: -k1 test
aaaa1:
aaaaa1:
aaaaa:

This is not OK. According to info page:

   The field separator is not considered to be part of either the field
   preceding or the field following.

Thus, the : should not be taken into comparision and in the result, it
should look like this:

aaaa1:
aaaaa:
aaaaa1:

sorted in the same order as if ':' weren't there.

Please fix it.

-- 
 Matus "fantomas" Uhlar, [EMAIL PROTECTED] ; http://www.fantomas.sk/
 Warning: I don't wish to receive spam to this address.
 Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
 Fighting for peace is like fucking for virginity...

_______________________________________________
Bug-textutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-textutils

Reply via email to