Actions
Bug #2213
closedLoad path specified by "-I" parameter does not appear in $LOAD_PATH
Bug #2213:
Load path specified by "-I" parameter does not appear in $LOAD_PATH
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-10-07) [i386-mswin32_90]
Backport:
Description
=begin
Shouldn't path specified by "-I" parameter appear in $LOAD_PATH?
C:>Ruby\bin\ruby.exe -Isomepath -e 'p $:.include? "somepath"'
false
=end
Updated by vo.x (Vit Ondruch) about 16 years ago
=begin
It is strange that following case works.
C:>Ruby\bin\ruby.exe -I./somepath -e 'p $:.include?("./somepath")'
true
So it looks like that $LOAD_PATH is not modified as long as there is not slash present? Or may be there is some other problem ...
=end
Updated by nobu (Nobuyoshi Nakada) about 16 years ago
- Status changed from Open to Rejected
=begin
Paths given with -I are expanded, unless it starts with "./".
=end
Updated by vo.x (Vit Ondruch) about 16 years ago
=begin
Thank you Nobu. May be documentation or Ruby -h could be more helpfull. It is not obvious behavior, especially in relation to Bug #2216.
=end
Actions