From: Ryan Pavlik Date: 2004-01-06T06:47:27+09:00 Subject: Re: name of current ruby iterpreter On Tue, 6 Jan 2004 06:09:47 +0900 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. > require 'rbconfig' ruby = Config::CONFIG.fetch('bindir') + "/" + Config::CONFIG.fetch('RUBY_INSTALL_NAME') ruby = Config.expand(ruby) exec ruby, "-e", 'puts VERSION' AFAIK, "/" works in win32. HTH, -- Ryan Pavlik "Oh for the love of evil, not this again." - 8BT