mirror of https://github.com/mirror/busybox.git
Update sed branch tests
parent
8a0b59fb82
commit
7bf8f5bc5e
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
test "$(echo foo | busybox sed 'b;p')" = foo
|
Loading…
Reference in New Issue