aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-01-24 15:52:16 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-01-24 15:52:16 +0100
commit2a4bba3ce2e00e55e6690fa8ba2607679277eed4 (patch)
treee26381d4a648bb3834272b02849602ff240d1d78 /testsuite
parenteb5091070f6876993d868d2b2bb49b4b4d3ed002 (diff)
downloadbusybox-w32-2a4bba3ce2e00e55e6690fa8ba2607679277eed4.tar.gz
busybox-w32-2a4bba3ce2e00e55e6690fa8ba2607679277eed4.tar.bz2
busybox-w32-2a4bba3ce2e00e55e6690fa8ba2607679277eed4.zip
sed: make 's///w FILE' actually write to FILE. Closes 8251
function old new delta add_cmd 1167 1210 +43 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 34479e55f..5d2356b64 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -365,6 +365,12 @@ testing "sed /regex/,+0<cmd> -i works" \
365 "1\n2\n3\n4\n5\n6\n7\n8\n" \ 365 "1\n2\n3\n4\n5\n6\n7\n8\n" \
366 "1\n2\n4\n5\n6\n7\n8\n" \ 366 "1\n2\n4\n5\n6\n7\n8\n" \
367 367
368testing "sed 's///w FILE'" \
369 "sed 's/qwe/ZZZ/wz'; cat z; rm z" \
370 "123\nZZZ\nasd\n""ZZZ\n" \
371 "" \
372 "123\nqwe\nasd\n"
373
368# testing "description" "commands" "result" "infile" "stdin" 374# testing "description" "commands" "result" "infile" "stdin"
369 375
370exit $FAILCOUNT 376exit $FAILCOUNT