summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko2017-08-23 17:56:03 +0200
committerDenys Vlasenko2017-08-23 17:56:03 +0200
commit9c47c43e07365abe1eda02d69572b9e579b49cec (patch)
tree00d5d88812ecf1eddc37f2112e9cf4ae57e2570c /testsuite
parent8b77a9ea81a0bd89ee69e7742d9b920dd1562763 (diff)
downloadbusybox-9c47c43e07365abe1eda02d69572b9e579b49cec.zip
busybox-9c47c43e07365abe1eda02d69572b9e579b49cec.tar.gz
sed: in '/regexp/cmd1;//cmd2', cmd2 should use the same regexp as cmd1
function old new delta get_address 165 211 +46 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sed.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index 05c00a9..675cb4f 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -387,6 +387,12 @@ testing "sed 's///w FILE'" \
"" \
"123\nqwe\nasd\n"
+testing "sed uses previous regexp" \
+ "sed '/w/p;//q'" \
+ "q\nw\nw\n" \
+ "" \
+ "q\nw\ne\nr\n"
+
# testing "description" "commands" "result" "infile" "stdin"
exit $FAILCOUNT