sort: fix ENDCHAR handling in "-kSTART,N.ENDCHAR"

function                                             old     new   delta
get_key                                              505     503      -2

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2015-10-19 19:27:26 +02:00
parent d1ed3e68b8
commit 0506e292b5
2 changed files with 12 additions and 3 deletions

View File

@@ -106,6 +106,14 @@ a/a:a
a:b
" ""
testing "sort with ENDCHAR" "sort -t. -k1,1.1 -k2 input" "\
ab.1
aa.2
" "\
aa.2
ab.1
" ""
testing "glibc build sort" "sort -t. -k 1,1 -k 2n,2n -k 3 input" "\
GLIBC_2.1
GLIBC_2.1.1