Regression on Windows: Can't execute jruby, with path constructed out of
rbconfig's CONFIG entries
--------------------------------------------------------------------------------------------------
Key: JRUBY-2575
URL: http://jira.codehaus.org/browse/JRUBY-2575
Project: JRuby
Issue Type: Bug
Reporter: Vladimir Sizikov
Assignee: Thomas E Enebo
Priority: Blocker
Fix For: JRuby 1.1.2
Revision r6748
http://svn.jruby.codehaus.org/changelog/jruby/?cs=6748
introduced one major regression on Windows.
It could be seen via multiple tests failing (now patched, see revs r6797,
r6798, r6802), and more tests still fail.
Try this one (on windows):
jruby -e "require 'rbconfig'; RUBY=File.join(Config::CONFIG['bindir'],
Config::CONFIG['ruby_install_name']); p RUBY; IO.popen(RUBY)"
It produces:
"D:\\work\\jruby-dev\\jruby\\bin/jruby.bat"
-e:1: Cannot run program "D:workjruby-devjrubybin/jruby.bat" (in directory
"D:\work\jruby-dev\jruby"): CreateProcess error=3, The system cannot find the
path specified (IOError)
So, effectively, one can't execute JRuby via popen.
The root problem is that JRuby can't really execute commands with \\-style
slashes. JRuby::PathHelper.quote_sensitive_split effectively just removes such
slashes from the comman line (it can be seen above -
D:workjruby-devjrubybin/jruby.bat).
--
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