jruby -S flag does not search PATH, not support relative locations within PATH
------------------------------------------------------------------------------
Key: JRUBY-2746
URL: http://jira.codehaus.org/browse/JRUBY-2746
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.1.2
Reporter: Charles Oliver Nutter
The -S flag currently only searches our bin dir. But it should search PATH and
current dir as well, and even support specifying relative paths within PATH.
For example, if I have <cwd>/tmp/script.rb, jruby -S tmp/script.rb should run
it. if I have <somewhere in PATH>/tmp/script.rb, jruby -S tmp/script.rb should
find it. And if I have <somewhere in PATH>/script.rb or <cwd>/script.rb, jruby
-S script.rb should also work. Currently -S only works if script.rb is in bin,
but we do properly search for relative locations under bin, so <jruby
bin>/tmp/script.rb is found correctly by jruby -S tmp/script.rb. It's mostly
the PATH/cwd searching that's missing.
Another point to consider is that we recommend -S as a way to guarantee JRuby's
bin is searched first. Since I think this is an important capability, perhaps
we should continue to have JRuby's bin searched first, and then fall back on a
PATH/cwd search.
--
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