blob: c25127d7f45200b82fa572fe96f21a5a5aa097ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
echo ! printing !
! false
echo $?
! true
echo $?
if ! false; then false; echo $?; fi
echo $?
if ! false; then ! false; echo $?; fi
echo $?
for a in ! a b c; do echo $a; done
for a in ! a b c; do ! printf "$a "; echo $?; done
for a in ! a b c; do ! /usr/bin/printf "$a "; echo $?; done
for a in ! a b c; do ! printf "$a " | false; echo $?; done
for a in ! a b c; do ! printf "$a " | true; echo $?; done
for a in ! a b c; do ! { printf "$a " | false; }; echo $?; done
for a in ! a b c; do ! { printf "$a " | true; }; echo $?; done
|