Issue Type: Bug Bug
Assignee: Thomas E Enebo
Created: 24/Nov/12 5:33 PM
Description:

I'm not exactly sure how ENV['_'] is set in MRI, but the output in MRI is different than JRuby. In MRI, ENV['_'] returns a string that points at the currently running bin file (I think), where JRuby returns nil.

Here is an example:

[aaron@higgins jruby (master)]$ ruby -v -e'p ENV["_"]'
ruby 2.0.0dev (2012-11-17 trunk 37694) [x86_64-darwin12.2.1]
"/Users/aaron/.local/bin/ruby"
[aaron@higgins jruby (master)]$ bin/jruby -v -e'p ENV["_"]'
jruby 1.7.1.dev (1.9.3p327) 2012-11-24 275a56f on Java HotSpot(TM) 64-Bit Server VM 1.6.0_37-b06-434-11M3909 [darwin-x86_64]
nil
[aaron@higgins jruby (master)]$

Environment: [aaron@higgins jruby (master)]$ bin/jruby -v
jruby 1.7.1.dev (1.9.3p327) 2012-11-24 275a56f on Java HotSpot(TM) 64-Bit Server VM 1.6.0_37-b06-434-11M3909 [darwin-x86_64]
[aaron@higgins jruby (master)]$
Project: JRuby
Priority: Major Major
Reporter: Aaron Patterson
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to