I'm confused.

On Windows7, Ruby 1.9.3

I do : ruby -S script.rb
and it works correctly, and searches the PATH variable

However, if I do :
set RUBYOPT=-S
ruby script.rb
=>ruby: invalid switch in RUBYOPT: -S (RuntimeError)

What am I missing ?

-- 
Posted via http://www.ruby-forum.com/.