Thomas Adam wrote:
>  --- Joel VanderWerf <vjoel / PATH.Berkeley.EDU> wrote: > 
> 
>>How can I find the name of the current ruby interpreter? It's not $0, 
>>since that's the main ruby script. I want to be able to start another 
>>process using the same interpreter, whatever that happens to be.
> 
> 
> 
> exec $(which ruby) name_of_script.rb

I should have been clearer:

1. It has to work on windows, too.

2. It has to work correctly even if you originally invoked a ruby 
interpreter that is not on your PATH or is not the first one on your PATH.