Overview
| Artifact ID: | cdf61b13685c297966b7ababc23251fa6a306532 |
|---|---|
| Ticket: | 1438236fffffffffffffffffffffffffffffffff
UNIX vs DOS Slashes |
| User & Date: | speedboat on 2006-02-27 21:00:01 |
Changes
- icomment:
Logged In: YES user_id=243036 I have a .bat script which determines it's own location, for example C:\MyDir. The .bat script then sets the TCLLIBPATH accordingly, for example: set TCLLIBPATH=%MYDIR%/path/to/my/packages % MYDIR%/another/path Which results in: C:\MyDir/path/to/my/packages C:\MyDir/another/path which will not work. [file normalize] would be great, I didn't realize it would work on a list of file paths, but it would still need to be include in init.tcl probably as: set auto_path [file normalize $env(TCLLIBPATH)] I agree the .bat script is providing tcl an illegal list of directory paths, but it's far easier to correct within tcl than it is in the batch script. It's also a fairly easy problem to generate when most of the other environment variables (Ex. TCL_ROOT, TCL_LIBRARY) in the .bat script require DOS-like slashes. - login: "speedboat"
- mimetype: "text/plain"
- username: "speedboat"