[ale] Exiting multi-block shell scripts
Danny Cox
danny at compgen.com
Wed Jun 28 09:02:07 EDT 2000
Ken,
On Wed, 28 Jun 2000, Kenneth W Cochran wrote:
> Indeed... But "trap 'exit 0' 0" wouldn't stop it...
> I guess I'm still trying to grok some of the picky syntax-stuff... :)
Yeah, some of the older shells would loop on this. They'd hit
the exit, then run the trap command, which was an exit, so they'd run
the trap command, ...
Try: trap 'trap "" 0; exit 0' 0, which will disable the sig 0
trap when it runs. It should exit then.
Danny
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list