[Python-Dev] problems building Python 2.1a1 on QNX 4.25

Fredrik Lundh fredrik@pythonware.com
Sun, 28 Jan 2001 10:37:45 +0100


guido wrote:

> > Revision 1.33 clearly leaves initial slashes untouched.
> > I guess we should restore this...
> 
> Yes, please!  (Just the "leading extra slashes stay" behavior.)

just looked this up in the specs, and POSIX seem to
require that leading slashes are preserved only if there
are exactly two of them:

    A pathname that begins with two successive slashes
    may be interpreted in an implementation-dependent
    manner, although more than two leading slashes are
    treated as a single slash.
    (from susv2)

maybe we should add a if len(slashes) > 2: slashes = "/"
test to the patch?

Cheers /F