From: Fernando Cacciola Date: 2007-11-06T01:58:06+09:00 Subject: Re: FileUtils.ln_s in Vista Laurent Sansonetti wrote: > On Oct 31, 2007 9:58 PM, gga wrote: >> Fernando Cacciola wrote: >>> 2.If not, how do I detect the host platform so I can call Vista's >>> own mklink instead? >>> >> RUBY_PLATFORM =~ /win/ >> > > This is not going to work as expected on Mac OS X environments (which > have a RUBY_PLATFORM that contains "darwin"). > > The following would perhaps be better: RUBY_PLATFORM =~ > /mswin32|cygwin|mingw|bccwin/ > OK Thanks -- Fernando Cacciola SciSoft http://fcacciola.50webs.com