Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.3
-
Fix Version/s: JRuby 1.2
-
Component/s: Miscellaneous
-
Labels:None
Description
jruby -S looks for scripts in the current directory, even when not asked to. It should only look for them in PATH (maybe RUBYLIB?)
$ jruby -S spec spec/common_spec.rb
Error opening script file: /Users/assaf/work/buildr/spec (No such file or directory)
This shows what happens if there's a directory of the same name, but even if it was a file, it should not be picked up as a script unless listed in the PATH.
This works fine now after Nick made some fixes to -S handling.