Overview
| Artifact ID: | 601475ccbc167a84f70adeee212bef47071963cc0d89614c64ffe5ad60a26e86 |
|---|---|
| Ticket: | 3e25ac512e9eeb8788028264c400238fcf425238
[file] inconsistent handling of VFS/.. |
| User & Date: | aspect on 2018-06-15 15:08:26 |
Changes
- icomment:
Chasing the difference between interactive and script mode: $ echo 'puts [file exists /bin/sh/..]' > dotdot.tcl $ tclsh dotdot.tcl 0 $ tclsh < dotdot.tcl 1 the difference comes from TclFSCwdIsNative() returning 0 in the interactive case, causing an extra round of normalization in TclNativeCreateNativeRep. In the interactive case, tsdPtr->cwdClientData is null. In the script case it is initialized by the call chain: Tcl_MainEx -> Tcl_FSEvalFileEx -> Tcl_FSGetNormalizedPath -> Tcl_FSGetCwd -> FsUpdateCwd.
- login: "aspect"
- mimetype: "text/plain"