The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 03-28-2007
bigearsbilly bigearsbilly is offline
Registered User
  
 

Join Date: Feb 2006
Location: Southern England
Posts: 104
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 05:26 AM..