From: Caleb Clausen Date: 2010-07-28T15:41:03+09:00 Subject: Re: Which Ruby is in use? On 7/27/10, Fabian Marin wrote: > Edward, you're right. Once $0 is evaluated by Ruby that should work in > a Unix environment. But watch: $ ruby -e 'p $0' "-e" That doesn't seem to helpful. Hassan seemed to want the path to the ruby interpreter, not the path to the ruby script it's executing. Hassan, what is you objection to using rbconfig.rb as Joel suggests? AFAIK, that's the best (only real) solution to this particular problem.