Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6aa4272a25639b3cb0380f86f35e67ff94b9e57c05e1542ee7cf7263741c9981
Ticket: baf43873720f5e92ae1142b1fc8d343b3648b54d
file join trashes valid network paths
User & Date: sebres on 2018-07-27 19:51:59
Changes

  1. icomment:
    > Then again [file join C: /a] on unix also destroys the drive path.
    
    Sure, but you did not understand my example - I meant on unix c:/... is not absolute,<br/>
    so in case [file join foo c:/bar/$tcl_platform(platform)]
    it DOES NOT overwrite foo, but will be appended as relative path. Take a look on my example again.
    
    This way it is definitely different as on windows (just as an argument against the UNC).
    
    As regards the provided link, I saw it already in the newest edition (<a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13">issue 7, 2018 edition</a>):
    <code><pre style="padding-left:10pt">
    A pathname consisting of a single <slash> shall resolve to the root directory of the process. 
    A null pathname shall not be successfully resolved.
    If a pathname begins with two successive <slash> characters, the first component following 
    the leading <slash> characters <b>may be interpreted in an implementation-defined manner,</b>
    although more than two leading <slash> characters shall be treated as a single <slash> character.
    </pre></code>
    
    And in your opinion is "may be interpreted in an implementation-defined manner" the same as "the POSIX specification disagrees"?<br/>
    In my opinion this sentence allows implementation to do what it wants.<br/>
    Additionally it's going to pathname resolution (not about the join), and anyway not about the file-subsystem, to where the `file` ensemble does belong.
    
    I could be wrong, but I'm sure this will not convince TCT to let us rewrite the handling to support UNC-paths.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"