add to testsuite and fix yet another sed corner case

This commit is contained in:
Denis Vlasenko
2007-01-29 17:10:19 +00:00
parent c562bb7487
commit 86811803e3
2 changed files with 27 additions and 6 deletions

View File

@@ -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