From: Tamara Temple Date: 2013-07-05T09:57:16+09:00 Subject: Re: RUBYOPT -S RuntimeError On Jul 4, 2013, at 4:21 PM, Tadeusz Bochan wrote: > 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/. > So, in ruby's man page, I see the following: RUBYOPT Additional Ruby options. e.g. RUBYOPT="-w -Ke" Note that RUBYOPT can contain only -d, -E, -I, -K, -r, -T, -U, -v, -w, -W, --debug, --disable-FEATURE and --enable-FEATURE. It doesn't look as though RUBYOPT works with -S