Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail From: Regis d'Aubarede Newsgroups: comp.lang.ruby Subject: Re: Windows directories not recognized by ruby? Date: Thu, 7 Apr 2011 10:47:18 -0500 Organization: Service de news de lacave.net Lines: 23 Message-ID: References: <043fe95b0b6678577d4c637390b94bc2@ruby-forum.com> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1302191481 61202 65.111.164.187 (7 Apr 2011 15:51:21 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Thu, 7 Apr 2011 15:51:21 +0000 (UTC) In-Reply-To: X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 381128 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:2468 > Windows NT *at least* since Vista, but probably XP already, and maybe > even the original NT 3.51, support the forward slash in the command > line. ForwardSlash works since MSDOS ! From wikipedia "Backslash" : "The Windows API can accept either the backslash or slash to separate directory and file components of a path, but the Microsoft convention is to use a backslash, and APIs that return paths put backslash in.[7] MS-DOS 2.0 copied the hierarchical file system from Unix and thus used the forward slash, but (possibly on the insistence of IBM) added the backslash to allow paths to be typed into the command shell while retaining compatibility with MS-DOS 1.0 and CP/M where the slash was the command-line option indicator (i.e. as in typing "dir/w" to give the "wide" option to the "dir" command).[8] Although the command shell was the only part of MS-DOS that required this, the use of backslash in filenames was propagated to most other parts of the user interface" -- Posted via http://www.ruby-forum.com/.