From: Matt Mower Date: 2005-06-29T23:29:22+09:00 Subject: Re: Smart(er) platform detection On 6/29/05, BG - Ben Armstrong wrote: > On Wed, 2005-06-29 at 21:55 +0900, Matt Mower wrote: > > That seems sensible. Of course it would require that RUBY_PLATFORM > > expose it as FreeVMS. > > It occurs to me that there is also this project to consider, and it is > related to your question about whether cygwin should be reported as > "unix" or not: > > http://gnv.sourceforge.net/ > I guess the issue here is about what decisions one might be trying to make based upon seeing: OS == :unix It might be best for hybrid's like cygwin, gnv, and so on if we reported something unambigous, e.g. OS => :hybrid IMPL => :cygwin, :gnv, etc... At least this way you can plan what you're going to do if you're not on a straightforward platform. e.g. if OS == :unix # do unix else if OS == :hybrid && IMPL == :cygwin # handle Cygwin case or if OS == :unix || ( OS == :hybrid && IMPL == :cygwin ) # we don't care I'm tempted to wonder about "hybrid-unix" but think that might be getting too complicated. In all likelyhood there aren't that many combinations that would need to be given special treatment. M -- Matt Mower :: http://matt.blogs.it/