From 86811803e304b63b71d3ddac91ad4e1cd741344f Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 29 Jan 2007 17:10:19 +0000 Subject: add to testsuite and fix yet another sed corner case --- testsuite/sed.tests | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testsuite/sed.tests') diff --git a/testsuite/sed.tests b/testsuite/sed.tests index cc200703d..9576b6c4b 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests @@ -143,6 +143,9 @@ testing "sed subst+write" \ "sed -e 's/i/z/' -e 'woutputw' input -; echo -n X; cat outputw" \ "thzngy\nagaznXthzngy\nagazn" "thingy" "again" rm outputw +testing "sed trailing NUL" \ + "sed 's/i/z/' input -" \ + "a\0b\0\nc" "a\0b\0" "c" # Test end-of-file matching behavior -- cgit v1.2.3