sort: fix -kN,M handling (was including last separator into the comparison)
[oweals/busybox.git] / testsuite / sort.tests
index 68fa3e405c88c36cbef2e40e717f212a98fdc812..c4b22346421e7ccefcd6d1204a233bfd36906be1 100755 (executable)
@@ -98,6 +98,14 @@ testing "sort with non-default leading delim 3" "sort -n -k3 -t/ input" "\
 //b/1
 " ""
 
+testing "sort with non-default leading delim 4" "sort -t: -k1,1 input" "\
+a:b
+a/a:a
+" "\
+a/a:a
+a:b
+" ""
+
 testing "sort -u should consider field only when discarding" "sort -u -k2 input" "\
 a c
 " "\