aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-17 18:11:45 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-17 18:11:45 +0000
commit8aea7ebb51f7d0b978900de01e2fb3b171497129 (patch)
treea43331e67e2472f7a8c415aee09ce17137d734a6 /testsuite
parentd01c2739ee04c79a8da5fb68ef889d862e747921 (diff)
downloadbusybox-w32-8aea7ebb51f7d0b978900de01e2fb3b171497129.tar.gz
busybox-w32-8aea7ebb51f7d0b978900de01e2fb3b171497129.tar.bz2
busybox-w32-8aea7ebb51f7d0b978900de01e2fb3b171497129.zip
sort: fix multiple -k (was ignoring all except last)
git-svn-id: svn://busybox.net/trunk/busybox@17919 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sort.tests10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests
index df5f7c7dd..1db7870d4 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -66,6 +66,16 @@ testing "sort key range with multiple options" "sort -k2,3rn input" \
66egg 1 2 papyrus 66egg 1 2 papyrus
67" "$data" "" 67" "$data" ""
68 68
69testing "sort key range with two -k options" "sort -k 2,2n -k 1,1r input" "\
70d 2
71b 2
72c 3
73" "\
74c 3
75b 2
76d 2
77" ""
78
69testing "sort with non-default leading delim 1" "sort -n -k2 -t/ input" "\ 79testing "sort with non-default leading delim 1" "sort -n -k2 -t/ input" "\
70/a/2 80/a/2
71/b/1 81/b/1