sed: fix a case when one-line range matches past lines. Closes bug 1867.
[oweals/busybox.git] / testsuite / expand / expand-works-like-GNU
1 # FEATURE: CONFIG_UNEXPAND
2
3 rm -f foo bar
4 $ECHO -e "\ty" | expand -t 3 ../../busybox > foo
5 $ECHO -e "\ty" | busybox unexpand -t 3 ../../busybox > bar
6 set +e
7 test ! -f foo -a -f bar
8 if [ $? = 0 ] ; then
9         set -e
10         diff -q foo bar
11 fi
12 rm -f foo bar
13 $ECHO -e "\ty\tx" | expand -it 3 ../../busybox > foo
14 $ECHO -e "\ty\tx" | busybox unexpand -it 3 ../../busybox > bar
15 set +e
16 test ! -f foo -a -f bar
17 if [ $? = 0 ] ; then
18         set -e
19         diff -q foo bar
20 fi