diff options
Diffstat (limited to 'tests/sed.test')
-rw-r--r-- | tests/sed.test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/sed.test b/tests/sed.test index 7ac5e887..2d019eb9 100644 --- a/tests/sed.test +++ b/tests/sed.test @@ -76,9 +76,11 @@ testing 'sed \1 p no newline' "sed 's/t\\(w\\)o/za\\1py/p'" \ testing 'sed -n s//\1/p' "sed -n 's/t\\(w\\)o/za\\1py/p'" "zawpy" "" "one\ntwo" testing 'sed -n s//\1/p no newline' "sed -n 's/t\\(w\\)o/za\\1py/p'" "zawpy" \ "" "one\ntwo" -testing 'sed backref error' "sed 's/w/ale \2 ha/' 2>/dev/null || echo no" \ +testing 'sed backref error' \ + "sed 's/w/ale \2 ha/' >/dev/null 2>/dev/null || echo no" \ "no\n" "" "one\ntwo\nthree" testing 'sed empty match after nonempty match' "sed -e 's/a*/c/g'" 'cbcncgc' \ '' 'baaang' testing 'sed empty match' "sed -e 's/[^ac]*/A/g'" 'AaAcA' '' 'abcde' - +testing 'sed s///#' "sed -e 's/TWO/four/i#comment'" "one\nfour\nthree" \ + "" "one\ntwo\nthree" |