postmodern / chruby

Changes the current Ruby
MIT License
2.87k stars 190 forks source link

RUBYOPT should probably be not set before introspection #426

Open hurricup opened 4 years ago

hurricup commented 4 years ago

See https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh#L43

Setting RUBYOPT may affect (and fail) ruby introspection. E.g. if you are using something like -r mysomefile and file is available only in target ruby