93850a56b2
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.
15 lines
106 B
Plaintext
Executable File
15 lines
106 B
Plaintext
Executable File
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
|