sort: -z outputs NUL terminated lines. Closes bug 1591.
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
Update: doesn't work as described. Try "make check" from parent dir...
|
||||
* * *
|
||||
|
||||
To run the test suite, change to this directory and run "./runtest". It will
|
||||
run all of the test cases, and list those with unexpected outcomes. Adding the
|
||||
-v option will cause it to show expected outcomes as well. To only run the test
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Usage:
|
||||
# runtest [applet1] [applet2...]
|
||||
|
||||
# Run one old-style test.
|
||||
# Tests are stored in applet/testcase shell scripts.
|
||||
# They are run using "sh -x -e applet/testcase".
|
||||
|
||||
@@ -107,6 +107,12 @@ a c
|
||||
b c
|
||||
" ""
|
||||
|
||||
testing "sort -z outputs NUL terminated lines" "sort -z input" "\
|
||||
one\0three\0two\0\
|
||||
" "\
|
||||
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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user