From: Gennady Date: 2003-08-07T05:33:51+09:00 Subject: Re: - where does it get its initial values? They are figured out during Ruby build by configure and then hardcoded into the resulting executable. If your ruby is installed in /usr/local you can check it with $ strings /usr/local/bin/ruby | grep /usr/local /usr/local/lib/ruby/site_ruby/1.6 /usr/local/lib/ruby/site_ruby/1.6/i686-linux /usr/local/lib/ruby/site_ruby /usr/local/lib/ruby/1.6 /usr/local/lib/ruby/1.6/i686-linux /usr/local/bin:/usr/ucb:/usr/bin:/bin:. Gennady. ----- Original Message ----- From: "Tuan Bui" Newsgroups: comp.lang.ruby To: "ruby-talk ML" Sent: Wednesday, August 06, 2003 1:23 PM Subject: $: - where does it get its initial values? > Howdy, > > Where does $: get its values from? The book says that it contains an > array of places to search for loaded files and that it is "initialized > to the list of standard directories, plus any additional ones you > specify using RUBYLIB and -I." Where does ruby get these standard > directories? I realize that I can set up RUBYLIB in my environment if I > want to search directories I specify, but I am mystified as to the > origin of the directories originally in $: . Any help would be welcome. > > Thanks, > Tuan > > >