From: "Iñaki Baz Castillo" Date: 2011-02-02T20:58:30+09:00 Subject: Re: How to know the exit status within at_exit() block? 2011/2/2 Robert Klemme : >> Yes, but I want to inspect the exit status code into the block >> provided to at_exit(). > > This is completely unrelated to how you _call_ exit.  I pointed out > that you can simplify > > if SOMETHING >  exit true > else >  exit false > end > > to > > exit SOMETHING > > or maybe this if you want to ensure the value is boolean > > exit !!SOMETHING Ok, perhaps I should clarify that SOMETHING is not the existing status code but any other kind of condition. -- Iñaki Baz Castillo