[ale] bash question

Geoffrey esoteric at 3times25.net
Sun Mar 26 14:53:39 EST 2006


Todd Pike wrote:
> What about using a trap on debug?
> 
> trap 'if [ $? != 0 ] then exit ; fi' DEBUG
> 
> You might want to do something more sophisticated than just checking $?
> but the above will do what you want.  Remember there will be a lot of
> overhead with such a trap.

Good point, although I believe you'll need a ; before the 'then'

-- 
Until later, Geoffrey

Any society that would give up a little liberty to gain a little
security will deserve neither and lose both.  - Benjamin Franklin



More information about the Ale mailing list