blob: 51151cbd4a2bbd098e36cdec9fba127c50658006 [file] [log] [blame]
Denys Vlasenkoe34dbc42017-07-24 02:49:56 +02001echo ! 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