Tcl Source Code

Check-in [854be12c0a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [3577801fff], [3570244fff], [3183016fff] and [3099612fff]: on Unix, [file normalize] and [cd ..] used the target of a link literally when ".." followed it, so "..", "." or a trailing "/" in the target or a chain of links gave a wrong path. Normalize the target first, as realpath() does. On Windows, resolve ".." lexically, as the system does, so that [pwd], [glob] and native paths agree after [cd ..] from a junction or a symbolic link. Potential incompatibility on Windows: [file normalize junction/..] is now the parent of the junction, not of its target.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | normalize-dotdot-after-link
Files: files | file ages | folders
SHA3-256: 854be12c0af5a285540cf740396c6d55f5ad86107a0b253d4a0a67696bb037e6
User & Date: serhiy.storchaka 2026-10-19 18:37:17.632
Context
2026-10-19
18:37
Fix [3577801fff], [3570244fff], [3183016fff] and [3099612fff]: on Unix, [file normalize] and [cd ..]... leaf check-in: 854be12c0a user: serhiy.storchaka tags: normalize-dotdot-after-link
12:02
tcl::idna -> 1.0.2 check-in: 8aa09bcb9b user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tclPathObj.c.
Changes to tests/fileSystem.test.
Changes to tests/winFile.test.