sort: fix -kN,M handling (was including last separator into the comparison)
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 19 Sep 2015 20:06:40 +0000 (22:06 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 19 Sep 2015 20:06:40 +0000 (22:06 +0200)
commit8aa7cf305ba5133721aa9852b398cbf1867fc857
tree996b5b68c9b4004ffd65d954f19f5bbbe21bc71b
parentf085344d5c4de46d0ef3e15a97ef444fd7cc3194
sort: fix -kN,M handling (was including last separator into the comparison)

Testcase:

$ printf '%s\n' a/a:a a:b | sort -t: -k1,1
a:b
a/a:a

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/sort.c
testsuite/sort.tests