From a2215b98f7d65bc613b9c8f008d79672402c6a07 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 12 May 2010 01:49:04 +0200 Subject: sed: fix a command with multible trailing backslashes Signed-off-by: Denys Vlasenko --- testsuite/sed.tests | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'testsuite/sed.tests') diff --git a/testsuite/sed.tests b/testsuite/sed.tests index b0de965..5b0750c 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 -- cgit v1.1