Command-line variables not always expanded
------------------------------------------
Key: JRUBY-3239
URL: http://jira.codehaus.org/browse/JRUBY-3239
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.6, JRuby 1.1.7
Environment: jruby 1.1.7 (ruby 1.8.6 patchlevel 114) (2008-12-14 rev
8341) [i386-java]
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
Darwin tiamat.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT
2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
Reporter: James M. Lawrence
Assignee: Thomas E Enebo
% echo $TEST_VAR
99
% jruby -e 'system(%{jruby -e "p %{$TEST_VAR}"})'
"99"
% jruby -e 'system(%{jruby -e "p %{$TEST_VAR} ; exit 1"})'
"$TEST_VAR"
% jruby -e 'system(%{jruby -e "p %{$TEST_VAR} ; raise"})'
"$TEST_VAR"
-e:1: unhandled exception
% ruby -e 'system(%{jruby -e "p %{$TEST_VAR} ; exit 1"})'
"99"
% jruby -e 'system(%{ruby -e "p %{$TEST_VAR} ; exit 1"})'
"$TEST_VAR"
% ruby -e 'system(%{ruby -e "p %{$TEST_VAR} ; exit 1"})'
"99"
--
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