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:05:50 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2022-07-29 17:05:50 +0300
commit00f2a35b835c6f49617f5379073e9063e7e683ce (patch)
tree114bcd038da16a8c9cd7919adbd59255c62487d8 /testsuite
parent9b6eb2a8ef4f1cfeeea821e270d49ef9c6ae4503 (diff)
sort: fix -k2M (wasn't skipping leading whitespace)
function old new delta compare_keys 848 862 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sort.tests11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests
index ff33e21b4..fb2cc91bd 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -219,4 +219,15 @@ testing "sort -h" \
# testing "description" "command(s)" "result" "infile" "stdin"
+testing "sort -k2,2M" \
+"sort -k2,2M input" "\
+3 March
+2 April
+1 May
+" "\
+2 April
+1 May
+3 March
+" ""
+
exit $FAILCOUNT