Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 77239285658ff5d09bac215e8070829828c25179
Ticket: 3185623fffffffffffffffffffffffffffffffff
Tcl treatment of ".." as path separator differs from Windows
User & Date: apnadkarni on 2011-02-18 08:58:02
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    While debugging a related bug - 3185609 - I discovered the following issue. 
    
    Windows treats path components containing only "." differently from Tcl. If a path component contains more than 2 dots, Windows treats this the same as a single "." so c:/foo/bar/...  (three dots in last component), is the same as c:/foo/bar/.  
    
    Tcl, on the other hand, treats the path as a valid path with the tail being "...". This is what gets cached as the "normalized path" in various fields in the FSPathObj.
    
    Not sure what the external ramifications are (for example, code that compares paths after normalization would not result the same result as Windows) and it's a corner case anyways (Only happened to type in ... instead of .. by mistake) but just recording this inconsistency in case there might be bigger ramifications (security?) that I haven't thought of.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "apnadkarni"
  10. subsystem changed to: "36. Pathname Management"
  11. title changed to:
    Tcl treatment of ".." as path separator differs from Windows
    
  12. type changed to: "Bug"