source: MondoRescue/branches/2.2.9/mindi-busybox/testsuite/expand/expand-works-like-GNU@ 3320

Last change on this file since 3320 was 3320, checked in by Bruno Cornec, 9 years ago
  • Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in the move to 3.0
File size: 440 bytes
Line 
1# FEATURE: CONFIG_UNEXPAND
2
3rm -f foo bar
4$ECHO -e "\ty" | expand -t 3 ../../busybox > foo
5$ECHO -e "\ty" | busybox unexpand -t 3 ../../busybox > bar
6set +e
7test ! -f foo -a -f bar
8if [ $? = 0 ] ; then
9 set -e
10 diff -q foo bar
11fi
12rm -f foo bar
13$ECHO -e "\ty\tx" | expand -it 3 ../../busybox > foo
14$ECHO -e "\ty\tx" | busybox unexpand -it 3 ../../busybox > bar
15set +e
16test ! -f foo -a -f bar
17if [ $? = 0 ] ; then
18 set -e
19 diff -q foo bar
20fi
Note: See TracBrowser for help on using the repository browser.