blob: a5258363fd66c89d5040092179d7cc9f562bf25f [file] [log] [blame]
Denis Vlasenko3952f202007-08-13 14:10:24 +00001rm -f foo bar
2echo " y" | unexpand ../../busybox > foo
3echo " y" | busybox unexpand ../../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 " y" | unexpand ../../busybox > foo
12echo " y" | busybox unexpand ../../busybox > bar
13set +e
14test ! -f foo -a -f bar
15if [ $? = 0 ] ; then
16 set -e
17 diff -q foo bar
18fi
19echo " y y" | unexpand ../../busybox > foo
20echo " y y" | busybox unexpand ../../busybox > bar
21set +e
22test ! -f foo -a -f bar
23if [ $? = 0 ] ; then
24 set -e
25 diff -q foo bar
26fi
27rm -f foo bar
28echo " y y" | unexpand ../../busybox > foo
29echo " y y" | busybox unexpand ../../busybox > bar
30set +e
31test ! -f foo -a -f bar
32if [ $? = 0 ] ; then
33 set -e
34 diff -q foo bar
35fi
36echo " y y" | unexpand -a ../../busybox > foo
37echo " y y" | busybox unexpand -a ../../busybox > bar
38set +e
39test ! -f foo -a -f bar
40if [ $? = 0 ] ; then
41 set -e
42 diff -q foo bar
43fi
44rm -f foo bar
45echo " y y" | unexpand -a ../../busybox > foo
46echo " y y" | busybox unexpand -a ../../busybox > bar
47set +e
48test ! -f foo -a -f bar
49if [ $? = 0 ] ; then
50 set -e
51 diff -q foo bar
52fi