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