sed: fix a command with multible trailing backslashes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-05-12 01:49:04 +02:00
parent 94043e8ad2
commit a2215b98f7
3 changed files with 23 additions and 7 deletions

View File

@@ -258,4 +258,18 @@ testing "sed nested {}s" \
"qwe\nasd\nacd\nacd\n" "" \
"qwe\nasd\nzxc\n"
testing "sed a cmd ended by double backslash" \
"sed -e '/| one /a \\
| three \\\\' -e '/| one-/a \\
| three-* \\\\'" \
' | one \\
| three \\
| two \\
' '' \
' | one \\
| two \\
'
# testing "description" "arguments" "result" "infile" "stdin"
exit $FAILCOUNT