summaryrefslogtreecommitdiff
path: root/testsuite/sed/sed-subst-subprint
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/sed/sed-subst-subprint')
-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 0000000..24f8bad
--- /dev/null
+++ b/testsuite/sed/sed-subst-subprint
@@ -0,0 +1,9 @@
+busybox sed 's/foo/bar/p'>output <<EOF
+foo
+bar
+EOF
+cmp -s output - <<EOF
+bar
+bar
+bar
+EOF