diff options
author | Rob Landley | 2005-05-18 06:34:37 +0000 |
---|---|---|
committer | Rob Landley | 2005-05-18 06:34:37 +0000 |
commit | 93850a56b2257ca5d0b2bbea82348622d83011b8 (patch) | |
tree | 7fd0b5bfa26882183b865198485c08aa11d9feac /testsuite | |
parent | 5797c7f0ef93f3efd0ba6634640f9591716214e3 (diff) | |
download | busybox-93850a56b2257ca5d0b2bbea82348622d83011b8.zip busybox-93850a56b2257ca5d0b2bbea82348622d83011b8.tar.gz |
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.
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/sed/sed-branch-conditional-inverted | 14 |
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 0000000..f4df84b --- /dev/null +++ b/testsuite/sed/sed-branch-conditional-inverted @@ -0,0 +1,14 @@ +busybox sed 's/a/1/;T notone;p;: notone;p'>output <<EOF +a +b +c +EOF +cmp -s output - <<EOF +1 +1 +1 +b +b +c +c +EOF |