Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.2
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: None
-
Labels:None
-
Environment:(Java HotSpot(TM) 64-Bit Server VM 1.6.0_24) [darwin-x86_64-java]
-
Number of attachments :
Description
I believe this is related to:
http://jira.codehaus.org/browse/JRUBY-5873
Kernel#` and Kernel#system can do glob correctly
for any other process, but not for JRuby itself:
>> `jruby test/test_*.rb`
"Error opening script file: /Users/godfat/project/cardinalblue/rest-graph/test/test_*.rb (No such file or directory)\n"
This makes my `jruby -S rake test` fail.
I tried a while to find out the actual problem. ![]()
Thank you for the fix!
Recall the discussion in
JRUBY-5873; this happens because there is no globbing (which is done by the shell) when JRuby takes a shortcut inside back ticks. You can either be more explicit in listing the files, or spawn a new process with -J-Djruby.launch.inproc=false.Does this make sense?