From: Lyle Johnson Date: 2002-03-21T01:42:38+09:00 Subject: Re: Guidelines for cross-platform development? > For example, ensuring that a path you're building is valid everywhere: > File.join(dir, file) instead of "#{dir}/#{file}". Or relying on an > external commands and assuming they are in the search path (as they > are 99% of the time on *nixes). Sadly, even File.join() doesn't do the right thing on Windows: irb(main):001:0> File.join('C:\src', 'ruby') "C:\\src/ruby"