sort takes separator into sort key even if it should not.

Matus fantomas Uhlar <[email protected]>
Newsgroups gmane.comp.gnu.textutils.bugs
Message-ID <[email protected]>
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...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.