When did Windows start accepting forward slash as a path separator?
grante at visi.com
Fri Sep 26 04:55:57 CEST 2003
In article <slrnbn74ch.s2.bignose-hates-spam at rose.localdomain.fake>, Ben Finney wrote:
>> But now, among a small group of cognoscenti, it is a truism that this is a
>> myth, and that Windows will allow you to use either the forward or the
>> backward slash as a pathname separator.
> I highly doubt it, since the forward slash (or just "slash") is the
> conventional Windows command-line option indicator,
That was configurable back in the DOS days. There was a "well-known" byte in
system RAM that contained the "switch" character. IIRC, DOS even shipped
with a utility to change that value.
> analogous to the hyphen on Unix. To accept it as the start of a filename
> would break zillions of existing systems, for no appreciable benefit to
Forward slashes always worked fine for me.
> Python automagically determines the path component separator, os.sep,
> and uses it for most file path transformations to and from the internal
> language's '/'.
> Is this perhaps what gives you the impression?
Forward slashes work in C as well.
Grant Edwards grante Yow! Yow! It's some people
at inside the wall! This is
visi.com better than mopping!
More information about the Python-list