From: "Ara.T.Howard" Date: 2004-08-20T23:45:50+09:00 Subject: Re: determining ruby interpreter On Fri, 20 Aug 2004 nobu.nokada@softhome.net wrote: > Hi, > > At Fri, 20 Aug 2004 13:01:02 +0900, > Ara.T.Howard wrote in [ruby-talk:109940]: >>>> 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. >> >> really? the install name doesn't include the extention then? > > It doesn't, but EXEEXT is not needed by system and spawn. tricky. what is spawn?! does this do anything tricky on windows like it does on *nix: system "#{ cmd } 2>/dev/null" ?? -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | A flower falls, even though we love it; | and a weed grows, even though we do not love it. | --Dogen ===============================================================================