Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 00fec3189324353fd6c8e5781170c0824eae2de8ca4797b230bf34ca0e592096
Ticket: 29b19f5ef0ccab7cbe8debabd5c9b246ae4cd444
Inconsistencies in zipfs path separator on Windows
User & Date: apnadkarni on 2023-09-14 16:44:35
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    It is not clear whether paths within zipfs mounts can use backslashes as the path separator on Windows. Examples:
    
    ```
    % file exists //zipfs:/mt/testdir/test2
    1
    % file exists //zipfs:/mt\\testdir\\test2
    0
    % file exists //zipfs:\\mt\\testdir\\test2
    1
    % file exists //zipfs:\\mt/testdir/test2
    1
    ```
    
    It appears backslashes are allowed only if the first path separator after the prefix is a backslash. This is not consistent with other Tcl commands on Windows where backslashes are separators everywhere. Alternatively, if zipfs is to be treated as a different file system where only / is a separator, that would be ok too in my mind as long as that is enforced for the first separator as well.
    
    On a related and somewhat contradictory note, the zipfs code treats paths beginning with \\ as UNC paths but not paths beginning with //.
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "Inconsistencies in zipfs path separator on Windows"
  16. type changed to: "Bug"