jruby --ng-server aborts on Windows with "the syntax of the command is 
incorrect"
---------------------------------------------------------------------------------

                 Key: JRUBY-4018
                 URL: http://jira.codehaus.org/browse/JRUBY-4018
             Project: JRuby
          Issue Type: Bug
          Components: Windows
    Affects Versions: JRuby 1.4
         Environment: JDK 1.6 on WinXP
            Reporter: Ian Dees
             Fix For: JRuby 1.4
         Attachments: vmopts-batch.patch

{{jruby --ng-server}} triggers a syntax error message in {{_jrubyvmopts.bat}}, 
where we unescape the {{_P}} sequence back to the pipe character.  This error 
seems to happen when the {{_RUBY_OPTS}} variable is empty.  Doing a simple 
equality check with {{""}} proved problematic, because the variable frequently 
has quotes in it.  So I've added a {{_HAS_RUBY_OPTS}} variable to the batch 
file.  This approach carries the risk that a future version of the batch file 
could somehow change {{_RUBY_OPTS}} without updating {{_HAS_RUBY_OPTS}}.  I've 
added a comment to the batch file to hopefully grab the attention of future 
updaters and reduce this risk.

These are the two test cases that stymied either the original batch file, or 
early attempts to fix it:

{{jruby --ng-server}}

{{jruby -e "3.times {|n| puts 'hello ' + n.to_s}"}}


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