Denis Vlasenko | a844200 | 2008-06-14 11:00:17 +0000 | [diff] [blame] | 1 | echo ! printing ! |
| 2 | ! false |
| 3 | echo $? |
| 4 | ! true |
| 5 | echo $? |
| 6 | if ! false; then false; echo $?; fi |
| 7 | echo $? |
| 8 | if ! false; then ! false; echo $?; fi |
| 9 | echo $? |
| 10 | for a in ! a b c; do echo $a; done |
| 11 | for a in ! a b c; do ! echo -n "$a "; echo $?; done |
| 12 | for a in ! a b c; do ! /bin/echo -n "$a "; echo $?; done |
| 13 | for a in ! a b c; do ! echo -n "$a " | false; echo $?; done |
| 14 | for a in ! a b c; do ! echo -n "$a " | true; echo $?; done |
| 15 | for a in ! a b c; do ! { echo -n "$a " | false; }; echo $?; done |
| 16 | for a in ! a b c; do ! { echo -n "$a " | true; }; echo $?; done |