blob: ee8c793ed20942899bba0fc4c408d0a78372b76f [file] [log] [blame]
Denis Vlasenko3952f202007-08-13 14:10:24 +00001rm -f foo bar
2echo -e "\ty" | expand -t 3 ../../busybox > foo
3echo -e "\ty" | busybox unexpand -t 3 ../../busybox > bar
4set +e
5test ! -f foo -a -f bar
6if [ $? = 0 ] ; then
7 set -e
8 diff -q foo bar
9fi
10rm -f foo bar
11echo -e "\ty\tx" | expand -it 3 ../../busybox > foo
12echo -e "\ty\tx" | busybox unexpand -it 3 ../../busybox > bar
13set +e
14test ! -f foo -a -f bar
15if [ $? = 0 ] ; then
16 set -e
17 diff -q foo bar
18fi