-e option does not work with iterator blocks
--------------------------------------------
Key: JRUBY-3159
URL: http://jira.codehaus.org/browse/JRUBY-3159
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.5
Environment: Windows
Reporter: Angel N. Sciortino
Assignee: Thomas E Enebo
The batch script for Windows dies while processing options if there is a -e
option with an iterator block. Here is an example:
jruby -e "(1..3).each {|f| puts f}"
'f' is not recognized as an internal or external command, operable program or
batch file.
ZenTest 3.11 uses code such as this, so it keeps breaking when I try to run it.
I traced it down to this line in _jrubyvmopts.bat:
set _ARGS=%_ARGS:"=_D%
I think it has problems with this because DOS might be treating the | as a DOS
pipe. Does anyone have an idea on how to fix this character replacement?
--
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