Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2e1e63bcbe0733bb57d599142f576c109181d38e
Ticket: f9fe90d0fa28fbe821db1c207de34010d51cf6e8
Inconsistent handling of leading //
User & Date: aspect on 2016-12-16 05:30:04
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    (on Unix - no idea about Windows)
    
    % file join //bla a
    /bla/a
    % file normalize //bla
    //bla
    % file join //bla a
    //bla/a
    
    From [::tcl::unsupported::representation] we can see what's going on - the 2nd line shimmers interned //bla to a path.
    
    Proper UNC paths should have a trailing slash .. but then it gets even weirder:
    
    % file join //bla/ a
    /bla/a
    % file normalize //bla/
    /bla
    % file join //bla/ a
    //bla/a
    
    Handling of //-prefixed paths seems to be inconsistent.  I *think* they're documented as special only on Windows (UNC paths), but there's code somewhere treating them specially on Unix.  It's not in TclFSNormalizeAbsolutePath.
    
    There's an argument that treating them specially on Unix would be useful, if only as pseudo-mountpoints for VFS.
    
    See also [bug 1752589fff].
    
  5. foundin changed to: "8.6.5"
  6. is_private changed to: "0"
  7. login: "aspect"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "aspect"
  13. subsystem changed to: "36. Pathname Management"
  14. title changed to: "Inconsistent handling of leading //"
  15. type changed to: "Bug"