[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sort takes separator into sort key even if it should not.
From: |
Matus fantomas Uhlar |
Subject: |
sort takes separator into sort key even if it should not. |
Date: |
Tue, 30 Jul 2002 15:57:55 +0200 |
User-agent: |
Mutt/1.3.28i |
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, address@hidden ; 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...
- sort takes separator into sort key even if it should not.,
Matus fantomas Uhlar <=