|
2000-10-26
| ||
| 08:20 | • Closed ticket [218342ffff]: TCLLIBPATH can't contain \ character plus 4 ... artifact: 47f6699aa7 user: welch | |
| 00:56 | • New ticket [218342ffff]. artifact: a4d72d50ec user: nobody | |
TCLLIBPATH can't contain \ character
Closed / Fixed218342ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:26
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
welch Closed ticket [218342ffff].
[History diff]2000-10-26 08:20:07
Log in (anonymous is fine) to add a comment.