<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Apr 19, 2018 at 11:14 AM Greg Clayton via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div><div>Also, looking at the tests for normalizing paths I found the following pairs of pre-normalized and post-normalization paths for posix:</div><div><br></div><div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;background-color:rgb(255,255,255)">      {<span style="color:#d12f1b">"//"</span>, <span style="color:#d12f1b">"//"</span>},</div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;color:rgb(209,47,27);background-color:rgb(255,255,255)"><span style="color:#000000">      {</span>"//net"<span style="color:#000000">, </span>"//net"<span style="color:#000000">},</span></div></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;color:rgb(209,47,27);background-color:rgb(255,255,255)"><span style="color:#000000"><br></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;color:rgb(209,47,27);background-color:rgb(255,255,255)"><span style="color:#000000">Why wouldn't we reduce "//" to just "/" for posix? And why wouldn't we reduce "//net" to "/net"?</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;color:rgb(209,47,27);background-color:rgb(255,255,255)"><br></div></div></blockquote><div><br></div><div>I don't know what the author of this test had in mind, but from the POSIX spec:</div><div><br></div><div><a href="http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11">http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11</a> </div><div><br></div><div><p style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px">> 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.</p><br class="inbox-inbox-Apple-interchange-newline"></div></div></div>