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 UNIX 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: 102
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..
Reply With Quote