[lldb-dev] FileSpec and normalization questions

Zachary Turner via lldb-dev lldb-dev at lists.llvm.org
Thu Apr 19 11:20:26 PDT 2018


On Thu, Apr 19, 2018 at 11:14 AM Greg Clayton via lldb-dev <
lldb-dev at lists.llvm.org> wrote:

>
> Also, looking at the tests for normalizing paths I found the following
> pairs of pre-normalized and post-normalization paths for posix:
>
>       {"//", "//"},
>       {"//net", "//net"},
>
> Why wouldn't we reduce "//" to just "/" for posix? And why wouldn't we
> reduce "//net" to "/net"?
>
>
I don't know what the author of this test had in mind, but from the POSIX
spec:

http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11


> A pathname that begins with two successive slashes may be interpreted in
an implementation-defined manner, although more than two leading slashes
shall be treated as a single slash.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180419/a9075686/attachment.html>


More information about the lldb-dev mailing list