[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:02131] Re: Question the sequence in $:

From: ts <decoux@...>
Date: 2000-03-24 15:02:18 UTC
List: ruby-talk #2131
>>>>> "C" == Clemens Hintze <c.hintze@gmx.net> writes:

C> I would mean the "." should be the *first* entry within the load
C> path. My local libs should overwrite site and system ones! If not, I
C> could not e.g. copy a system lib and patch it.

 I don't think this is a good idea for security reason. ruby don't add "."
 in rb_load_path only when ruby_init() is called with $SAFE > 0. This mean,
 if I've well understood the source, that only a extension can prohibit the
 inclusion of "." in $LOAD_PATH.

 Someone can confirm, or infirm, this ?

 If "." is the first entry, a script can load any standard module in place
 of the  real module, no ?


Guy Decoux




In This Thread

Prev Next