aboutsummaryrefslogtreecommitdiff
path: root/testsuite/sed
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-05-18 06:34:37 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-05-18 06:34:37 +0000
commit328329e89343190f7c64f2702c9045cb31d775c1 (patch)
tree7fd0b5bfa26882183b865198485c08aa11d9feac /testsuite/sed
parent18584f079ceffb2810fc79d698a1d6f2dd9b0431 (diff)
downloadbusybox-w32-328329e89343190f7c64f2702c9045cb31d775c1.tar.gz
busybox-w32-328329e89343190f7c64f2702c9045cb31d775c1.tar.bz2
busybox-w32-328329e89343190f7c64f2702c9045cb31d775c1.zip
Patch from Colin Watson (mangled slightly by Rob Landley):
This patch implements the 'T' command in sed. This is a GNU extension, but one of the udev hotplug scripts uses it, so I need it in busybox anyway. Includes a test; 'svn add testsuite/sed/sed-branch-conditional-inverted' after applying. git-svn-id: svn://busybox.net/trunk/busybox@10347 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'testsuite/sed')
-rwxr-xr-xtestsuite/sed/sed-branch-conditional-inverted14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/sed/sed-branch-conditional-inverted b/testsuite/sed/sed-branch-conditional-inverted
new file mode 100755
index 000000000..f4df84b3e
--- /dev/null
+++ b/testsuite/sed/sed-branch-conditional-inverted
@@ -0,0 +1,14 @@
1busybox sed 's/a/1/;T notone;p;: notone;p'>output <<EOF
2a
3b
4c
5EOF
6cmp -s output - <<EOF
71
81
91
10b
11b
12c
13c
14EOF