From: Justin Johnson Date: 2005-12-30T06:51:05+09:00 Subject: Re: Path Separator and Windows Bob Showalter wrote: > Justin Johnson wrote: >> Is there a reason File::SEPARATOR isn't set to \ to begin with for >> Windows? Even if the Windows API accepts a /, \ is standard for the >> Windows command line and executing commands with / in paths passed as >> args fails. Of course I can just do my own substitutions, but it seems >> like this could be improved. > > I'm not sure why it works the way it does; perhaps Matz will weigh in. > If you look at the source (file.c), the whole business is really quite > messy. > > How did DOS (and then Windows) ever decide to use backslash I wonder? > > And a pox on "drive letters" while we're at it! :-) > > The Unix approach seems so much more logical to me... No argument there. :-) -- Posted via http://www.ruby-forum.com/.