From: "Mehr, Assaph (Assaph)" Date: 2004-08-20T12:37:34+09:00 Subject: Re: determining ruby interpreter > anything more reliable than this? > ~ > ruby -rrbconfig -e'p > File.join(*Config::CONFIG.values_at("bindir","RUBY_INSTALL_NAME"))' > "/usr/local/bin/ruby" Works on windows and cygwin, but you might have to add ".exe" to spawn an external process.