diff options
author | Denys Vlasenko | 2009-12-13 02:09:22 +0100 |
---|---|---|
committer | Denys Vlasenko | 2009-12-13 02:09:22 +0100 |
commit | aa42d13e320250d3573c6be975876a612c00e91f (patch) | |
tree | 822cacf0626690e608e15df32659c65caac29b36 /testsuite | |
parent | 31e2e7b86388e4ece09f37866bd1411f357cafbd (diff) | |
download | busybox-aa42d13e320250d3573c6be975876a612c00e91f.zip busybox-aa42d13e320250d3573c6be975876a612c00e91f.tar.gz |
sort: make sort -o FILE FILE (same FILE) work. Closes bug 785. -3 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/sort.tests | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests index 5ed29fb..72df80b 100755 --- a/testsuite/sort.tests +++ b/testsuite/sort.tests @@ -27,6 +27,8 @@ egg 1 2 papyrus 999 3 0 algebra " +# testing "description" "command(s)" "result" "infile" "stdin" + # Sorting with keys testing "sort one key" "sort -k4,4 input" \ @@ -115,4 +117,15 @@ one\0two\0three\0\ testing "sort key doesn't strip leading blanks, disables fallback global sort" \ "sort -n -k2 -t ' '" " a \n 1 \n 2 \n" "" " 2 \n 1 \n a \n" +testing "sort file in place" \ +"strace -oZZZ sort -o input input && cat input" "\ +111 +222 +" "\ +222 +111 +" "" + +# testing "description" "command(s)" "result" "infile" "stdin" + exit $FAILCOUNT |