|
er, the clue is in your code...
set +e
#disabled
set -e
or
set +o errexit
set -o errexit
or
catch the error in an if or ||
like:
set -e
cat flap || echo oops # now it will not exit
or a blank label
raise_error || :
the error code is only observed when it is the last part of a pipeline
Last edited by bigearsbilly; 03-28-2007 at 01:26 AM..
|