summaryrefslogtreecommitdiff
path: root/testsuite/sed.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2010-04-20 04:00:03 -0400
committerDenys Vlasenko2010-04-20 04:00:03 -0400
commitf2c16edf99486a0ce2ca57f111831668e77d0fd1 (patch)
tree67789d2c4afa727c52db4573b26b50d6c5253ac5 /testsuite/sed.tests
parent96a18332316568ebccaa186ffb519b48c4310714 (diff)
downloadbusybox-f2c16edf99486a0ce2ca57f111831668e77d0fd1.zip
busybox-f2c16edf99486a0ce2ca57f111831668e77d0fd1.tar.gz
sed: fix nested {} case
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/sed.tests')
-rwxr-xr-xtestsuite/sed.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index f88524d..b0de965 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -253,4 +253,9 @@ testing "sed c" \
"repl\nrepl\n" "" \
"first\nsecond\n"
+testing "sed nested {}s" \
+ "sed '/asd/ { p; /s/ { s/s/c/ }; p; q }'" \
+ "qwe\nasd\nacd\nacd\n" "" \
+ "qwe\nasd\nzxc\n"
+
exit $FAILCOUNT