But on java 5 OSEnvironment#getSystemProperties does return the right values, so presumably (?)StringOnlyRubyHash isn't initalized correctly from this.
Description
The following does not work:
jruby -e 'puts ENV["HOME"]'
{/code}
But on java 5 OSEnvironment#getSystemProperties does return the right values, so presumably (?)StringOnlyRubyHash isn't initalized correctly from this.
Patch working for me on 1.4 and 5. Note that this add the following test to testEnv.rb:
test_ok(ENV['HOME'], "Reading external environment")That should be ENV['HOME'] || ENV['Something from windows'] I assume.