Update sed branch tests

This commit is contained in:
Glenn L McGrath 2003-09-14 11:10:08 +00:00
parent 8a0b59fb82
commit 7bf8f5bc5e
3 changed files with 17 additions and 15 deletions

View File

@ -1,15 +1 @@
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
test "$(echo foo | busybox sed 'b one;p;: one')" = foo

View File

@ -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

View File

@ -0,0 +1 @@
test "$(echo foo | busybox sed 'b;p')" = foo