On Fri, Oct 7, 2011 at 3:05 AM, Intransition <transfire / gmail.com> wrote:
> Can anyone explain to me why, with RUBYOPT=3D"-rubgems", this works:
>
> =A0 =A0$ ruby -e'require "ansi"; "x".ansi(:red)'
>
> But,
>
> =A0 =A0$ ruby -ransi -e'"x".ansi(:red)'
>
> gives an error `ruby: no such file to load -- ansi (LoadError)`. =A0Even
> if I do:
>
> =A0 =A0$ ruby -rubygems -ransi -e'"x".ansi(:red)'
>
> it still doesn't work.

What happens for

$ ruby -r rubygems -r ansi -e '"x".ansi(:red)'

And what version btw.?

Cheers

robert

--=20
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/