Argument passing has different semantics on Windows
---------------------------------------------------
Key: JRUBY-3205
URL: http://jira.codehaus.org/browse/JRUBY-3205
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.5
Environment: Windows
Reporter: Jay McGaffigan
Fix For: JRuby 1.1.6
Attachments: subtest.rb, systemtest.rb
I'm seeing odd behavior in JRuby wrt to the attached files
when I change the systemtest.rb items to "ruby --exclude ...
I get the following output when I run in MRI:
D:\Build\Affinity\Trunk>ruby systemtest.rb
["--exclude", "x,y,z"]
{:exclude=>"x,y,z"}
["--exclude", "x,y,z"]
{:exclude=>"x,y,z"}
when I change it to jruby --exclude....
I get
D:\Build\Affinity\Trunk>jruby systemtest.rb
calling -> system("call #{items}"]
["--exclude", "'x,y,z'"]
{:exclude=>"'x,y,z'"}
calling -> system(*items)
["--exclude", "x,y,z"]
{:exclude=>"x,y,z"}
The issue is that the system("call {#cmd}") does not remove the single quotes
in jruby but it does in MRI
This is only on a windows platform... rake 0.8.3 has some new win32 code, that
switched to the system invocation with a "call xxxx" semantic.
--
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