Forum: JRuby JRuby, Windows and command line wildcard expansion

Posted by Daniel Berger (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
Posted by Roger Pack (rogerdpack)
on 2012-06-29 20:43
Probably.  This may be related:
http://jira.codehaus.org/browse/JRUBY-4527
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.