Forum: JRuby JRuby, Windows and command line wildcard expansion

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2416a46a08c3041e2bc9a2c61ec8f0ea?d=identicon&s=25 Daniel B. (djberg96)
on 2012-06-28 20:24
(Received via mailing list)
Hi,

I hit this recently while attempting to use the Rake::TestTask#loader
+ 'direct' option:

c:\Users\djberge\Repositories\win32-sound>jruby -Ilib test/test*.rb
Error opening script file:
c:/Users/djberge/Repositories/win32-sound/test/test*.rb (The filename,
directory name, or volume label syntax is incorrect)

It looks like JRuby is looking for a literal "test*.rb" instead of
expanding it. It works fine with MRI, though.

Quoting the args doesn't matter either, btw.

This looks like a bug to me. Is it?

Regards,

Dan
40c8f707cab5f50878cee873881d6b75?d=identicon&s=25 Roger P. (rogerdpack)
on 2012-06-29 20:43
Probably.  This may be related:
http://jira.codehaus.org/browse/JRUBY-4527
This topic is locked and can not be replied to.