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
avoid
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
run
/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’
in
its filename!) and route the call through that, but that is really
awkward.
Can I make JRuby run the actual command I tell it to?
See if system ‘/usr/bin/env ruby -v’ works. That might confound the
jruby heuristics, and run the real ruby. Or you could try ‘/bin/sh
-c’ instead of /usr/bin/env.
My question is, “How do I turn this off?” I actually, really, want to run
/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’ in
its filename!) and route the call through that, but that is really awkward.
Can I make JRuby run the actual command I tell it to?
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
avoid
launching new JVM’s, or to make “Ruby” code work with “JRuby.”