When did Windows start accepting forward slash as a path

Mel Wilson mwilson at the-wire.com
Sat Sep 27 15:26:48 CEST 2003


In article <mailman.1064540736.16016.python-list at python.org>,
Bob Gailer <bgailer at alum.rpi.edu> wrote:
>At 05:50 PM 9/25/2003, Stephen Ferg wrote:
>>I have a question that is not directly Python-related.  But I thought
>>I'd ask the most erudite group that I know... :-)
>>When did Windows start accepting the forward slash as a path separator
>>character?

>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.

   Internally, the routines in the API have accepted '/' as
a path separator for a long, long time.  It's the
command-line processors that kick up a fuss.

    The _mkdir function does not do any translation of
    path-name delimiters.  All operating systems accept
    either "\" or "/" internally as valid delimiters
    within path names.

                  Microsoft C/C++ Run-Time Library Reference
                         version 7.0, with Windows 3.0, 1991


        Regards.        Mel.




More information about the Python-list mailing list