Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 35c6e557357aa4a046bdbd85c3c8879ac525dfc663a486252a39f55f0d723332
Ticket: 1b8a893ded5f2a9b0c70a5893c7a2be3429d8033
TCL_PACKAGE_PATH path is (wrongly) braced.
User & Date: pooryorick on 2025-05-09 14:47:00
Changes

  1. icomment:
    Tcl can also be rendered 100% dysfunctional by creating a .tclshrc file containing only "exit 1".  TCLLIBPATH is documented to be a list, and if a user provides a value that is not a list, Tcl should produce an error, and it does.  It would be trivial to make the current error a little more informative, but the interpreter should still exit if a bad value is provided.  "Error early" is a thing, and it's a good thing.  A syntax/formatting error in TCLLIBPATH (and TCL_PACKAGE_PATH) should be treated the same way that a syntax/formatting error in a script is treated.  It is the user's bug when a value is documented to have a certain format but the user provides a value that is not in that format.  Anyway, Jan's example really has no bearing on what the format of TCLLIBPATH should be.  Likewise, if the format were changed to use delimiters, and there was an error in the implementation of the parser for those delimiters, it wouldn't reflect on the decision to adopt those delimiters as the new format.  Also, if the behaviour Jan's example illustrates was actually a problem, it would have been fixed a long, long time ago.
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"