From: noreply@... Date: 2007-04-29T02:53:35+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. ---------------------------------------------------------------------- >Comment By: Jim Freeze (jfreeze) Date: 2007-04-28 17:53 Message: Ok, thanks. I thought it was supposed to be there, but couldn't find it when I did the search. Does anyone know when the next release is? This bug makes 1.8.6 somewhat useless for several use cases. Jim ---------------------------------------------------------------------- Comment By: Alexey Verkhovsky (alexeyv) Date: 2007-04-28 05:51 Message: This is a duplicate. The bug is already fixed on 1_8 branch, but not released yet. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10428&group_id=426