Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 11abf667c9d1c0a697a4f33cc511ce2dde7671115b3a267ae3c991fffde1ca42
Ticket: bca391ab51cd48e76b67b6e23e505f14f07dc4df
cd and file normalize inconsistency with volume-relative paths on Windows
User & Date: apnadkarni on 2026-03-18 16:18:58
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    The following shows inconsistencies in behaviour in the use of volume-relative paths. At the DOS command level, current directory for drives C: and D: are \tcl and \src respectively.
    
    ```
    c:\Tcl>d:
    
    D:\src>tclsh
    % cd d:
    % pwd
    D:/src
    % cd c:
    % pwd
    C:/
    ```
    
    Along similar lines,
    
    ```
    D:\src>tclsh
    % file normalize d:
    D:/src
    % file normalize c:
    C:/
    ```
    
    does not seem consistent given that the current directory on C: at the OS level was not root.
    
    I think volume relative paths should be resolved relative to the current directory on that volume as seen at the process / OS level.
    
  5. foundin changed to: "9.0"
  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:
    cd and file normalize inconsistency with volume-relative paths on Windows
    
  16. type changed to: "Bug"