When I run the command:
jruby -e "system '/usr/bin/ruby -v'"
the version output I see is from JRuby, rather that the Ruby that I
expected. I suspect that this is related to some optimization used to
launching new JVM’s, or to make “Ruby” code work with “JRuby.”
My question is, “How do I turn this off?” I actually, really, want to
/usr/bin/ruby, and I’ve expressed that as clearly as I know how in the
code. My current hack is to write a little shell script (without ‘ruby’
its filename!) and route the call through that, but that is really
Can I make JRuby run the actual command I tell it to?