Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0c348e70b2b51f2e8ec55e890a96335e918c2e3458f6ab613ca0f09bc098eaf6
Ticket: 3057b6261f7b7ac748fee8c2915c516d2bf05ffa
Allow ':' (';' on Windows) as separator in TCLLIBPATH
User & Date: apnadkarni on 2024-10-19 03:48:09
Changes

  1. icomment:
    I am confused by this RFE. `TCLLIBPATH` is documented to have a Tcl list syntax. Is the suggestion to move to a "native" : or ; separated syntax?
    Could //zipfs:/myapp/lib reasonably be in TCLLIBPATH requiring the : to be escaped? Just string replacement of `:` or `;` with spaces (in the rfe-3057 branch) on a list and expecting correct list structure to be maintained is frought in my opinion.
    
    If at all any changes are to be made, I am in favour of a broader review of environment variable syntax instead of isolated point changes to specific variables. Choice of platform specific versus Tcl syntax impacts
    
    - File path separators in environment variables. `/`, `\` or both? `TCLLIBPATH` requires `/`, `TCL_LIBRARY`, `HOME` and `TCL*_TM_PATH` (on Windows, dunno about Unix) accepts either.
    
    - Quoting / escaping. How are spaces or `:` in a zipfs path escaped? In the case of `TCLLIBPATH` the `\` is used for escaping as standard Tcl syntax. In the case of `TCL*_TM_PATH`, I am not sure.
    
    - If the environment variable is a list, what is its syntactic structure? As a Tcl list, or using ":" or ";" in a platform specific manner? Currently `TCLLIBPATH` is a Tcl list, `TCL*_TM_PATH` uses the latter platform specific form.
    
    These are all interrelated, e.g. if using Tcl syntax, then `\` cannot be used as a file path separator. 
    
    Current behaviour seems to be inconsistent between environment variables, for better or worse. If any changes are to be made, they should not be done in isolation.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"