Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 45ce1c478a2d4617c81425f4a558eaec44661534570ab8316cbb96f2e869cad4
Ticket: baf43873720f5e92ae1142b1fc8d343b3648b54d
file join trashes valid network paths
User & Date: sebres on 2018-07-27 09:45:57
Changes

  1. assignee changed to: "sebres"
  2. foundin changed to: ">= 8.5 (*nix only)"
  3. icomment:
    The problem here is not the join but normalize (invoked internally).
    Additionally it is still correct on windows (so issue affects unix only).
    
    <code><pre style="padding-left:10pt">
    % file normalize //a/b/$tcl_platform(platform)
    //a/b/windows
    /a/b/unix
    </pre></code>
    
    Additionally it affects all current versions (on *nix) since 8.5.
    
    I'm not sure the issue is really an issue (because UNC-paths are not accessible directly on *nix platform, so are not really valid in sense of *nix path).
    Either one uses something like `mount -t drvfs '\\server\share' /mnt/share`, or different named conventions like `file://server/share`.
    
    But to be platform-independent (e. g. build the path-segments) the current behavior looks wrong to me.
    
    And indeed 8.6.8 has still remained first backslash, current 8.6 does not (as well as 8.5 also).
    
    WiP.
    
  4. login: "sebres"
  5. mimetype: "text/x-fossil-wiki"