ShellLauncher command line parsing does not handle embedded quotes
------------------------------------------------------------------

                 Key: JRUBY-1247
                 URL: http://jira.codehaus.org/browse/JRUBY-1247
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.x
         Environment: Found problem in Windows and Mac OS X.  Tested fix on Mac 
OS X.
            Reporter: Dave Halliday
             Fix For: JRuby 1.0.1
         Attachments: shellargs.diff

Using the Rake task for Rpsec, I found that JRuby was having trouble parsing a 
command like this correctly:

ruby -I"my include path" file.rb

The parser was breaking the string at the spaces inside the quotes and it was 
not removing the double quotes similar to how a real shell parser would.

I have included an improved parser and tests in the enclosed patch.  I also 
fixed a problem with one of the ShellLauncher tests that used to successfully 
parse an invalid command string.

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