diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-12 01:49:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-12 01:49:04 +0200 |
commit | a2215b98f7d65bc613b9c8f008d79672402c6a07 (patch) | |
tree | a522b707160253cba5805279b871cc33dabc24ce /testsuite/sed.tests | |
parent | 94043e8ad2d30cc2199b35d18c853314ade174a3 (diff) |
sed: fix a command with multible trailing backslashes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/sed.tests')
-rwxr-xr-x | testsuite/sed.tests | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests index b0de9657c..5b0750cac 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests @@ -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 |