Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a4d72d50ec95dcea45903e561cf4641c9913bfe2
Ticket: 218342ffffffffffffffffffffffffffffffffff
TCLLIBPATH can't contain \ character
User & Date: nobody on 2000-10-26 00:56:26
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4012 Bug
    Version: 8.2
    SubmitDate: '2000-01-12'
    LastModified: '2000-03-30'
    Severity: LOW
    Status: Closed
    Submitter: wart
    ChangedBy: hobbs
    OS: Windows NT
    FixedDate: '2000-10-25'
    ClosedDate: '2000-03-30'
    
    
    The environment variable TCLLIBPATH is used to add more values to the
    Tcl "auto_path" variable.  If you use a native path type on NT, with
    backslashes, the resulting string undergoes backslash substitution before
    being added to the auto_path.  The result is that a path like:
    
    c:\foobar
    
    is added to the auto_path as:
    
    c:foobar
    
    This does not occur with TCL_LIBRARY when setting the tcl_library variable.
    
    To reproduce:
    
    c:\> set TCLLIBPATH=c:\foobar\foo
    c:\> set TCL_LIBRARY=c:\valid\path
    c:\> tclsh
    % set auto_path
    c:foobarfoo [...]
    % set tcl_library
    c:\valid\path
    
    The difference between these two is that TCLLIBPATH is treated as a list, while TCL_LIBRARY is not.  According to the library man page:
    
           env(TCLLIBPATH)
                  If  set, then it must contain a valid Tcl list giv-
                  ing directories to search during  auto-load  opera-
                  tions.   This variable is only used when initializ-
                  ing the auto_path variable.
    
    I don't know if there's a realistic way around this; I suppose we could preprocess the string, and backslash the backslashes, but that will just increase load time.  Also, by definition, tcl lists have backslash substitution performed.  Comments?
    
    - eric
    
    -- 03/30/2000 ericm
    
    In this case, based on the docs and the usage, Tcl style paths
    should be used, so the user would have to enter C:/foobar/foo.
    Perhaps this should be doc'ed. 
    -- 03/30/2000 hobbs
    
    
    
  4. foundin changed to: "obsolete: 8.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "07. Variables"
  10. title changed to: "TCLLIBPATH can't contain \ character"
  11. type changed to: "Bug"