source: MondoRescue/branches/3.2/mindi-busybox/shell/hush_test/hush-parsing/negate.tests@ 3232

Last change on this file since 3232 was 2725, checked in by Bruno Cornec, 13 years ago
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
  • Property svn:executable set to *
File size: 587 bytes
Line 
1echo ! printing !
2! false
3echo $?
4! true
5echo $?
6if ! false; then false; echo $?; fi
7echo $?
8if ! false; then ! false; echo $?; fi
9echo $?
10PRINTF=`which printf`
11for a in ! a b c; do echo $a; done
12for a in ! a b c; do ! printf "$a "; echo $?; done
13test x"$PRINTF" = x"" && exit 1
14for a in ! a b c; do ! "$PRINTF" "$a "; echo $?; done
15for a in ! a b c; do ! printf "$a " | false; echo $?; done
16for a in ! a b c; do ! printf "$a " | true; echo $?; done
17for a in ! a b c; do ! { printf "$a " | false; }; echo $?; done
18for a in ! a b c; do ! { printf "$a " | true; }; echo $?; done
19echo Done
Note: See TracBrowser for help on using the repository browser.