Contents of /trunk/mkinitrd-magellan/busybox/shell/ash_test/ash-invert/invert.tests
Parent Directory | Revision Log
Revision 816 -
(show annotations)
(download)
Fri Apr 24 18:33:46 2009 UTC (15 years, 1 month ago) by niro
File size: 417 byte(s)
Fri Apr 24 18:33:46 2009 UTC (15 years, 1 month ago) by niro
File size: 417 byte(s)
-updated to busybox-1.13.4
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 $? |