2008-06-14 11:00:17 +00:00
|
|
|
echo ! printing !
|
|
|
|
! false
|
|
|
|
echo $?
|
|
|
|
! true
|
|
|
|
echo $?
|
|
|
|
if ! false; then false; echo $?; fi
|
|
|
|
echo $?
|
|
|
|
if ! false; then ! false; echo $?; fi
|
|
|
|
echo $?
|
2009-08-12 12:21:30 +00:00
|
|
|
PRINTF=`which printf`
|
2008-06-14 11:00:17 +00:00
|
|
|
for a in ! a b c; do echo $a; done
|
2009-04-09 07:50:02 +00:00
|
|
|
for a in ! a b c; do ! printf "$a "; echo $?; done
|
2009-08-12 12:21:30 +00:00
|
|
|
test x"$PRINTF" = x"" && exit 1
|
|
|
|
for a in ! a b c; do ! "$PRINTF" "$a "; echo $?; done
|
2009-04-09 07:50:02 +00:00
|
|
|
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
|
2009-08-12 12:21:30 +00:00
|
|
|
echo Done
|