aboutsummaryrefslogtreecommitdiff
path: root/testsuite/sed/sed-branch-conditional
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/sed/sed-branch-conditional')
-rw-r--r--testsuite/sed/sed-branch-conditional15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/sed/sed-branch-conditional b/testsuite/sed/sed-branch-conditional
new file mode 100644
index 000000000..47d0a5ff2
--- /dev/null
+++ b/testsuite/sed/sed-branch-conditional
@@ -0,0 +1,15 @@
+busybox sed 's/a/1/;t one;p;: one;p'>output <<EOF
+a
+b
+c
+EOF
+cmp -s output - <<EOF
+1
+1
+b
+b
+b
+c
+c
+c
+EOF