IO.popen drops first space between command and first argument
-------------------------------------------------------------

                 Key: JRUBY-3652
                 URL: http://jira.codehaus.org/browse/JRUBY-3652
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.3RC1
         Environment: jruby 1.3.0RC1 (ruby 1.8.6p287) (2009-05-01 9cbadb8) 
(Java HotSpot(TM) Client VM 1.5.0_18) [x86-java]
Windows XP SP3
            Reporter: Matthew Daniel


{code}
IO.popen("fc.exe a b","r+") do |io|
  puts "LINE>#{io.gets}"
end
{code}
*current outcome*
{{'fc.exea' is not recognized as an internal or external command,}}
*expected outcome*
{{LINE>Comparing files A and B}}

If one inserts a leading space into the command string, such as {{" fc.exe a 
b"}}, it works as expected, as does inserting additional spaces between the 
command name and the first argument (which I can't show you because Jira is 
eating the additional spaces, but you get the idea).

I regret that I don't have a currently running Linux instance to try this out 
on non-win32. Also, if it matters, this issue came about when trying to run 
redmine with Subversion integration under 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