aboutsummaryrefslogtreecommitdiff
path: root/testsuite/sed
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-09-16 01:46:36 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-09-16 01:46:36 +0000
commit06cbc471880cb5ea8f3293eaaa0f0a4b0b49580f (patch)
treea64e6ce8f21b19abda79932248d3439ed3e016e5 /testsuite/sed
parente34d493f7529a6ba67b57ae331f920fa3db2a789 (diff)
downloadbusybox-w32-06cbc471880cb5ea8f3293eaaa0f0a4b0b49580f.tar.gz
busybox-w32-06cbc471880cb5ea8f3293eaaa0f0a4b0b49580f.tar.bz2
busybox-w32-06cbc471880cb5ea8f3293eaaa0f0a4b0b49580f.zip
Fix a bug that creapt in recently with substitution subprinting, and add
a test for it. git-svn-id: svn://busybox.net/trunk/busybox@7534 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'testsuite/sed')
-rw-r--r--testsuite/sed/sed-subst-subprint9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/sed/sed-subst-subprint b/testsuite/sed/sed-subst-subprint
new file mode 100644
index 000000000..24f8bad7d
--- /dev/null
+++ b/testsuite/sed/sed-subst-subprint
@@ -0,0 +1,9 @@
1busybox sed 's/foo/bar/p'>output <<EOF
2foo
3bar
4EOF
5cmp -s output - <<EOF
6bar
7bar
8bar
9EOF