From: Jim Weirich Date: 2005-08-12T10:22:47+09:00 Subject: Re: What am I doing wrong? On Thursday 11 August 2005 04:21 pm, Mark J.Reed wrote: > Jason Foreman writes: > >try this: > > > >irb -r rubygems -r pathname2 > > Thanks, that worked . . . as does using "-r ubygems", which is a nice > "nroff -man"ish touch. And I see that the reason it worked on Windows is > that it adds "-rubygems" to $RUBYOPT, and children's mods to the > environment affect their parents in Windows, unlike in the Unixy world. > > Is $RUBYOPT the best way to set things up so that rubygems is always > "prequire"d? If you consistently use rubygems and can control your own environment, it is probably the easiest choice. See http://docs.rubygems.org/read/chapter/3#page70 for your list of options. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)