Problems with multiple arguments to Kernel#exec/system and Rake's FileUtils#sh 
-------------------------------------------------------------------------------

                 Key: JRUBY-1688
                 URL: http://jira.codehaus.org/browse/JRUBY-1688
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1b1
         Environment: Jruby up to revision 5195
            Reporter: Lenny Marks
            Assignee: Thomas E Enebo
         Attachments: t.rake

I originally stumbled on this attempting to run 'warble' which uses the 
following from a rake task:

sh "jar", "cf", "#{config.war_name}.war", "-C", config.staging_dir, "."

which just winds up outputting the jar usage. It looks like none of the args 
are passed to the command. The same thing happens using exec or system. 

> ruby -e "system 'echo', 'hello'"
hello

> jruby -e "system 'echo', 'hello'"

>

I think this may be related to JRUBY-1557 but I'll leave it to someone with 
more insight than myself to decide. 

The attached rake file works correctly using MRI but actually acts as if the 
command were 'ls -1' using jruby.



-- 
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

Reply via email to