Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2022-07-29 17:40:00 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2022-07-29 17:40:00 +0300
commit5479c435fde32e720af5e177e95d6364a422885a (patch)
tree2368af30b56c3be0f8e4a14cc7d09be0ebfa03c1 /testsuite
parent00f2a35b835c6f49617f5379073e9063e7e683ce (diff)
sort: fix sort -s -u, closes 14871
function old new delta sort_main 851 856 +5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 fb2cc91bd..8dbadbdae 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -230,4 +230,14 @@ testing "sort -k2,2M" \
3 March
" ""
+testing "sort -s -u" \
+"sort -s -u -k 2 input" "\
+z a
+z b
+" "\
+z b
+a b
+z a
+a a" ""
+
exit $FAILCOUNT