Manifest of check-in
[854be12c0a]
- 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.
by
serhiy.storchaka on
2026-10-19 18:37:17.
B 8aa09bcb9bf2090b3cc77117744e28892c85e2f103bb3178be440bcf0c5c2181
C Fix\s[3577801fff],\s[3570244fff],\s[3183016fff]\sand\s[3099612fff]:\son\sUnix,\s[file\snormalize]\sand\s[cd\s..]\sused\sthe\starget\sof\sa\slink\sliterally\swhen\s".."\sfollowed\sit,\sso\s"..",\s"."\sor\sa\strailing\s"/"\sin\sthe\starget\sor\sa\schain\sof\slinks\sgave\sa\swrong\spath.\sNormalize\sthe\starget\sfirst,\sas\srealpath()\sdoes.\sOn\sWindows,\sresolve\s".."\slexically,\sas\sthe\ssystem\sdoes,\sso\sthat\s[pwd],\s[glob]\sand\snative\spaths\sagree\safter\s[cd\s..]\sfrom\sa\sjunction\sor\sa\ssymbolic\slink.\sPotential\sincompatibility\son\sWindows:\s[file\snormalize\sjunction/..]\sis\snow\sthe\sparent\sof\sthe\sjunction,\snot\sof\sits\starget.
D 2026-10-19T18:37:17.632
F generic/tclPathObj.c 7862cb5a0eedf2671ae8b7aa7d20ed8d36742954c8af285bbb7a5b3cf6e4cac3
F tests/fileSystem.test 93c9ec35db4f649f8eee28998a5c27c33cc610cc5036d906ccb237ebe0775252
F tests/winFile.test b9eb4c9913b16e50645618553e2809cc844c498cf37049999aa7191f56d5875a
P 8aa09bcb9bf2090b3cc77117744e28892c85e2f103bb3178be440bcf0c5c2181
R 9617309c3e32711b29f09b0353e040a2
T *branch * normalize-dotdot-after-link
T *sym-normalize-dotdot-after-link *
T -sym-main *
T -sym-trunk *
U serhiy.storchaka
Z 9871c390eb4786521c38964f938d7a91