From: ara.t.howard@... Date: 2007-03-30T23:51:29+09:00 Subject: Re: Workaround for 1.8.6 with CommandLine On Fri, 30 Mar 2007, Jim Freeze wrote: > Hello > > If you are using ruby-1.8.6, you may have noticed a bug where exit always > returns 0 when called from within an at_exit block. You can test this on your > machine with the following little snippet: > > ruby -e 'at_exit { exit(1) }' ; echo $? > > The result should be '1', but ruby-1.8.6 will return '0'. wow. i rely on that combination in a few places, in particular i dis-inherit exit handlers in child processes by doing this as the first line at_exit{ exit! status } do you know if it's a bug or new behaviour? -a -- be kind whenever possible... it is always possible. - the dalai lama