Project

General

Profile

Actions

Bug #2213

closed

Load 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

Added by vo.x (Vit Ondruch) about 16 years ago. Updated over 14 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-10-07) [i386-mswin32_90]
Backport:
[ruby-core:26088]

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 Actions #1

=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 Actions #2

  • 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 Actions #3

=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

Also available in: PDF Atom