Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 09b850804d0849a7ce2f3c9146be53f8cf2978dd54560fffb1d5ae581e622b88
Ticket: b876737a0bc55f0efabb1c6082da375cac65cc7e
tcl::tm::path doesn't handle tilde expand
User & Date: apnadkarni on 2025-06-10 02:29:55
Changes

  1. icomment:
    I don't think this fix is correct. As TIP 602 explicitly says
    
    *Note that the commands tcl::tm::add and tcl::tm::roots will not themselves do any tilde expansion.*
    
    Tildes are not special characters in Tcl 9 with the exception in the TIP for initialization at startup from environment variables including `TCL9_0_TM_PATH` etc.
    
    It is up to the caller of tm::add and tm::roots to do tilde expansion or not as they see fit.
    
    In this case, I am not sure where the paths containing ~ are coming from. If from environment variables at startup, then that initialization code should do the expansion before calling tm::add.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"