Overview
| Artifact ID: | a4d72d50ec95dcea45903e561cf4641c9913bfe2 |
|---|---|
| Ticket: | 218342ffffffffffffffffffffffffffffffffff
TCLLIBPATH can't contain \ character |
| User & Date: | nobody on 2000-10-26 00:56:26 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "07. Variables"
- title changed to: "TCLLIBPATH can't contain \ character"
- type changed to: "Bug"