> > > How can I let Ruby ignore RUBYOPT? > > > > > > Both -T1 and unsetting the environment variable aren't > > > possible in my situation. I don't want the rest of the > > > script to run in safe mode 1 and I don't have control of > > > the environment... > > Mmhh... I might use an intermediate Ruby script to unset the > environment variable... Not pretty, but it might work.... S:\>echo %RUBYOPT% rubygems S:\>type test1.rb p [ENV.include?("RUBYOPT"), $SAFE] system("ruby -e 'p [ENV.include?(\"RUBYOPT\"), $SAFE]'") S:\>type test2.rb ENV.delete "RUBYOPT" p [ENV.include?("RUBYOPT"), $SAFE] system("ruby -e 'p [ENV.include?(\"RUBYOPT\"), $SAFE]'") S:\>ruby -T1 test1.rb [true, 1] [true, 0] S:\>ruby -T1 test2.rb [false, 1] [false, 0] It's the last line of the second test which is interesting. Promising? Still not pretty... gegroet, Erik V.