When did Windows start accepting forward slash as a path separator?

Stephen Horne $$$$$$$$$$$$$$$$$ at $$$$$$$$$$$$$$$$$$$$.co.uk
Fri Sep 26 16:48:29 CEST 2003

On Fri, 26 Sep 2003 02:05:50 GMT, "Andrew Dalke"
<adalke at mindspring.com> wrote:

>Bob Gailer:
>> Good question. Certainly later than:
>> Microsoft Windows 2000 [Version 5.00.2195]
>> (C) Copyright 1985-2000 Microsoft Corp.
>> C:\>cd /samis
>> The syntax of the command is incorrect.
>The shell is parsing the line and interprets the "/" as a
>command-line flag,  Try a relative path, like
>  cd ./samis


F:\>cd ./dev

F:\>cd .\dev


Notice how the forward slash version doesn't change directories, but
the back slash version does. My guess is that it is being taken as...

  cd . /<unknown option>

The big question being why the unknown option doesn't get an error
message, as it normally does.

Steve Horne

steve at ninereeds dot fsnet dot co dot uk

More information about the Python-list mailing list