sed: fix "sed clusternewline" testcase
function old new delta process_files 2197 2226 +29 flush_append 47 54 +7 get_next_line 184 189 +5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 41/0) Total: 41 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -154,11 +154,9 @@ testing "sed selective matches insert newline" \
|
||||
testing "sed selective matches noinsert newline" \
|
||||
"sed -ne 's/woo/bang/p' input -" "a bang\nb bang" "a woo\nb woo" \
|
||||
"c no\nd no"
|
||||
test x"$SKIP_KNOWN_BUGS" = x"" && {
|
||||
testing "sed clusternewline" \
|
||||
"sed -e '/one/a 111' -e '/two/i 222' -e p input -" \
|
||||
"one\none\n111\n222\ntwo\ntwo" "one" "two"
|
||||
}
|
||||
testing "sed subst+write" \
|
||||
"sed -e 's/i/z/' -e 'woutputw' input -; $ECHO -n X; cat outputw" \
|
||||
"thzngy\nagaznXthzngy\nagazn" "thingy" "again"
|
||||
|
||||
Reference in New Issue
Block a user