From: noreply@... Date: 2007-04-28T13:53:58+09:00 Subject: [ ruby-Bugs-10428 ] exit from within block returns wrong value. Bugs item #10428, was opened at 2007-04-28 04:53 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10428&group_id=426 Category: Core Group: 1.8.6 Status: Open Resolution: None Priority: 3 Submitted By: Jim Freeze (jfreeze) Assigned to: Nobody (None) Summary: exit from within block returns wrong value. Initial Comment: 1.8.5 ruby -e 'at_exit { exit(1) }; echo $? #=> 1 1.8.6 ruby -e 'at_exit { exit(1) }; echo $? #=> 0 I believe the 1.8.6 return value is incorrect. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10428&group_id=426