Kernel.exit handles its arguments wrong, not like MRI
-----------------------------------------------------
Key: JRUBY-4097
URL: http://jira.codehaus.org/browse/JRUBY-4097
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Environment: jruby 1.5-dev
Reporter: Vladimir Sizikov
Assignee: Vladimir Sizikov
JRuby:
{code}
#>jruby -e "exit 2.2"
#>echo $?
0
{code}
MRI:
{code}
ruby -e "exit 2.2"
#>echo $?
2
{code}
Also, JRuby accepts 'exit Object.new', and MRI doesn't accept that.
Furthermore, MRI calls to_int, JRuby doesn't.
Will fix.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email