diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-07-29 16:05:50 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-07-29 16:05:50 +0200 |
commit | 00f2a35b835c6f49617f5379073e9063e7e683ce (patch) | |
tree | 114bcd038da16a8c9cd7919adbd59255c62487d8 /testsuite | |
parent | 9b6eb2a8ef4f1cfeeea821e270d49ef9c6ae4503 (diff) | |
download | busybox-w32-00f2a35b835c6f49617f5379073e9063e7e683ce.tar.gz busybox-w32-00f2a35b835c6f49617f5379073e9063e7e683ce.tar.bz2 busybox-w32-00f2a35b835c6f49617f5379073e9063e7e683ce.zip |
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-x | testsuite/sort.tests | 11 |
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" \ | |||
219 | 219 | ||
220 | # testing "description" "command(s)" "result" "infile" "stdin" | 220 | # testing "description" "command(s)" "result" "infile" "stdin" |
221 | 221 | ||
222 | testing "sort -k2,2M" \ | ||
223 | "sort -k2,2M input" "\ | ||
224 | 3 March | ||
225 | 2 April | ||
226 | 1 May | ||
227 | " "\ | ||
228 | 2 April | ||
229 | 1 May | ||
230 | 3 March | ||
231 | " "" | ||
232 | |||
222 | exit $FAILCOUNT | 233 | exit $FAILCOUNT |