source: MondoRescue/branches/2.2.9/mindi-busybox/shell/ash_test/ash-invert/invert.tests@ 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
  • Property svn:executable set to *
File size: 417 bytes
Line 
1# tests of return value inversion
2# placeholder for future expansion
3
4# user subshells (...) did this wrong in bash versions before 2.04
5
6! ( echo hello | grep h >/dev/null 2>&1 ); echo $?
7! echo hello | grep h >/dev/null 2>&1 ; echo $?
8
9! true ; echo $?
10! false; echo $?
11
12! (false) ; echo $?
13! (true); echo $?
14
15! true | false ; echo $?
16! false | true ; echo $?
17
18! (true | false) ; echo $?
19! (false | true) ; echo $?
Note: See TracBrowser for help on using the repository browser.