On Tue, 6 Jan 2004 06:09:47 +0900
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.
> 

    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 <rpav / mephle.com>

"Oh for the love of evil, not this again." - 8BT