diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-13 14:30:33 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-13 14:30:33 +0000 |
commit | 3b92eaac53e1557ea923d6a395f753224a73d676 (patch) | |
tree | 8d347a473b8be1b9fb8d27954cb39e7d50b2ae25 /testsuite/sort.tests | |
parent | 75cddd8eb514082c8f9945ae1976f97c4b0413b4 (diff) | |
download | busybox-w32-3b92eaac53e1557ea923d6a395f753224a73d676.tar.gz busybox-w32-3b92eaac53e1557ea923d6a395f753224a73d676.tar.bz2 busybox-w32-3b92eaac53e1557ea923d6a395f753224a73d676.zip |
sort: -z outputs NUL terminated lines. Closes bug 1591.
Diffstat (limited to 'testsuite/sort.tests')
-rwxr-xr-x | testsuite/sort.tests | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests index 1db7870d4..f700dc0c1 100755 --- a/testsuite/sort.tests +++ b/testsuite/sort.tests | |||
@@ -107,6 +107,12 @@ a c | |||
107 | b c | 107 | b c |
108 | " "" | 108 | " "" |
109 | 109 | ||
110 | testing "sort -z outputs NUL terminated lines" "sort -z input" "\ | ||
111 | one\0three\0two\0\ | ||
112 | " "\ | ||
113 | one\0two\0three\0\ | ||
114 | " "" | ||
115 | |||
110 | testing "sort key doesn't strip leading blanks, disables fallback global sort" \ | 116 | testing "sort key doesn't strip leading blanks, disables fallback global sort" \ |
111 | "sort -n -k2 -t ' '" " a \n 1 \n 2 \n" "" " 2 \n 1 \n a \n" | 117 | "sort -n -k2 -t ' '" " a \n 1 \n 2 \n" "" " 2 \n 1 \n a \n" |
112 | 118 | ||