Hey.

POSIX 4.13 Pathname Resolution says:
> If a pathname begins with two successive <slash> characters, the
> first component following the leading <slash> characters may be
> interpreted in an implementation-defined manner, although more than
> two leading <slash> characters shall be treated as a single <slash>
> character.

I wondered what exactly this means.
If the *first* component following the leading // is allowed to be
interpreted in an implementation-defined manner, what would that mean
for any remaining components? That they are not?

It doesn't seem to make too much sense to have the remaining components
not in an implementation-defined manner if the first one already is, or
does it?


Also, in POSIX a pathname component / filename cannot contain <slash>,
but would the above text mean that - since component may be interpreted
in an implementation-defined manner - it could contain <slash> and
there was only one component at all?



And POSIX 3.271 Pathname says:
> Multiple successive <slash> characters are considered to be the same
> as one <slash>, except for the case of exactly two leading <slash>
> characters. 

Would that only mean that the two leading <slash>es aren't collapsed
into one, but any others are as in:
//<IMPLEMENTATION-DEFINED>/foo///bar
would be the same as:
//<IMPLEMENTATION-DEFINED>/foo/bar

or would it mean that *no* collapsing takes place at all, that is the
two pathnames from above would not be the same?


Thanks
Chris.

  • pathnames wi... Christoph Anton Mitterer via austin-group-l at The Open Group
    • Re: pat... Don Cragun via austin-group-l at The Open Group

Reply via email to