From: Joel VanderWerf Date: 2004-01-06T06:25:54+09:00 Subject: Re: name of current ruby iterpreter Thomas Adam wrote: > --- Joel VanderWerf 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.