110 |
testing "sed embedded NUL g" "sed -e 's/woo/bang/g'" "bang\0bang\0" "" \ |
testing "sed embedded NUL g" "sed -e 's/woo/bang/g'" "bang\0bang\0" "" \ |
111 |
"woo\0woo\0" |
"woo\0woo\0" |
112 |
test x"$SKIP_KNOWN_BUGS" = x"" && { |
test x"$SKIP_KNOWN_BUGS" = x"" && { |
113 |
echo -e "/woo/a he\0llo" > sed.commands |
$ECHO -e "/woo/a he\0llo" > sed.commands |
114 |
testing "sed NUL in command" "sed -f sed.commands" "woo\nhe\0llo\n" "" "woo" |
testing "sed NUL in command" "sed -f sed.commands" "woo\nhe\0llo\n" "" "woo" |
115 |
rm sed.commands |
rm sed.commands |
116 |
} |
} |
153 |
"one\none\n111\n222\ntwo\ntwo" "one" "two" |
"one\none\n111\n222\ntwo\ntwo" "one" "two" |
154 |
} |
} |
155 |
testing "sed subst+write" \ |
testing "sed subst+write" \ |
156 |
"sed -e 's/i/z/' -e 'woutputw' input -; echo -n X; cat outputw" \ |
"sed -e 's/i/z/' -e 'woutputw' input -; $ECHO -n X; cat outputw" \ |
157 |
"thzngy\nagaznXthzngy\nagazn" "thingy" "again" |
"thzngy\nagaznXthzngy\nagazn" "thingy" "again" |
158 |
rm outputw |
rm outputw |
159 |
testing "sed trailing NUL" \ |
testing "sed trailing NUL" \ |
270 |
| two \\ |
| two \\ |
271 |
' |
' |
272 |
|
|
273 |
|
# fisrt three lines are deleted; 4th line is matched and printed by "2,3" and by "4" ranges |
274 |
|
testing "sed with N skipping lines past ranges on next cmds" \ |
275 |
|
"sed -n '1{N;N;d};1p;2,3p;3p;4p'" \ |
276 |
|
"4\n4\n" "" "1\n2\n3\n4\n" |
277 |
|
|
278 |
# testing "description" "arguments" "result" "infile" "stdin" |
# testing "description" "arguments" "result" "infile" "stdin" |
279 |
|
|
280 |
exit $FAILCOUNT |
exit $FAILCOUNT |