From: Laurent Sansonetti Date: 2007-11-01T07:13:08+09:00 Subject: Re: FileUtils.ln_s in Vista 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/ Laurent