Re: Getting signal 15 after boot

From: John Hasler (john_at_dhh.gt.org)
Date: 09/28/05


Date: Wed, 28 Sep 2005 09:47:42 -0500

Peter T. Breuer writes:
> Quite what is a command (and thus what is "unexpected") when "-e" is set
> has never beenn obvious to me.

Anything which returns non-zero to the shell.

> Executing "foo" which gives error will bomb the script, but "foo || echo
> hi" will enable script survival.

Right, because "echo" returns zero to the shell. The shell never sees the
return from "foo". Thus if you want to ignore the return from "foo" you
write "foo || true".

-- 
John Hasler 
john@dhh.gt.org
Dancing Horse Hill
Elmwood, WI USA


Relevant Pages