From: Frederick Lee Date: 2009-05-04T03:59:14+09:00 Subject: Re: RUBYOPT: Where is it (env) defined? Yes, I can see it. [/Users/Ric]echo $RUBYOPT rubygems I tried using grep to find RUBYOPT within my local startup files: [/Users/Ric]grep "RUBYOPT" .* .profile:export RUBYOPT=rubygems .viminfo:~MSle0~/RUBYOPT .viminfo:?/RUBYOPT I missed the .profile file; so I commented out 'RUBYOPT': # # Your previous .profile (if any) is saved as .profile.mpsaved # Setting the path for MacPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH # export RUBYOPT=rubygems Still... [/Users/Ric]echo $RUBYOPT rubygems .... So it turns out that RUBYOPT was defined everywhere. But via 'grep', it appears I plugged-up its definition within the local scheme. ... Where else can I find (global) startup files to check? Marc Heiler wrote: >> Question: Where would the global env RUBYOPT definition/assignment be? > > Isn't it defined by the shell you use? > > echo $RUBYOPT > > If you can't find it, on Linux systems, I always use grep -r -- Posted via http://www.ruby-forum.com/.