On Wed, 2005-12-28 at 09:47 +0900, Une bue wrote:
> Guillaume Marcais <guslist / free.fr> wrote:
> 
> > [gus@comp ruby-1.8.2]$ echo $RUBYOPT
> > -rrubygems
> 
> do you think this is right, because i've done :
> export RUBYOPT=rubygems
> (without de "-")
> and, i've seen progs complaining about ubygems (without the "r")
> 
> BEWARE, in your case you have TWO "r" ie :
> -rrubygems

Actually, both work. AFAIK, rubygems is the official name of the library
but ubygems is also there so it looks good when using the -r options.
'ruby -rubygems' and 'ruby -rrubygems' are equivalent.

Looking in /usr/lib/ruby I see:

/usr/lib/ruby/site_ruby/1.8/ubygems.rb
/usr/lib/ruby/site_ruby/1.8/rubygems.rb

and

$ cat /usr/lib/ruby/site_ruby/1.8/ubygems.rb
# This file allows for the running of rubygems with a nice
# command line look-and-feel: ruby -rubygems foo.rb

require 'rubygems'



Guillaume.