From 3b92eaac53e1557ea923d6a395f753224a73d676 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 13 Feb 2008 14:30:33 +0000 Subject: sort: -z outputs NUL terminated lines. Closes bug 1591. --- testsuite/sort.tests | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testsuite/sort.tests') 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 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" -- cgit v1.2.3