<i>cd .. from link in Windows confuses Tcl</i> status still Open with 4 other changes
by
.
D 2026-10-19T18:44:30.976
J foundin 8.6.18,\s9.0.5,\s9.1.0
J icomment Still\spresent\son\sWindows\s11\swith\s8.5.19\sto\s9.1:\safter\s<tt>cd\stest1/test2/link;\scd\s..</tt>\swith\sa\sjunction\sto\stest1,\s<nowiki>[pwd]</nowiki>\sand\s<nowiki>[glob]</nowiki>\sshow\sthe\sparent\sof\stest1,\swhile\s<nowiki>[file\sexists]</nowiki>,\s<nowiki>[open]</nowiki>\sand\s<tt>cmd\s/c\scd</tt>\suse\stest2.\sTcl\sresolves\s".."\sphysically\safter\sthe\slink,\sbut\sWindows\sitself\sresolves\sit\slexically.\n\nProposed\sfix\sin\sbranch\s[/timeline?r=normalize-dotdot-after-link|normalize-dotdot-after-link]:\son\sWindows\s".."\sis\sresolved\slexically,\sas\sthe\ssystem\sdoes\s(and\sas\sPython's\sntpath.realpath()\sdoes),\sso\sall\sof\sthem\sagree\son\stest2;\slinks\selsewhere\sin\sthe\spath\sare\sstill\sresolved.\sThis\sworks\sfor\sjunctions\sand\sfor\s<tt>mklink\s/D</tt>\ssymbolic\slinks,\sabsolute\sor\srelative.\sPotential\sincompatibility:\s<nowiki>[file\snormalize\sjunction/..]</nowiki>\sis\snow\sthe\sparent\sof\sthe\sjunction,\snot\sof\sits\starget;\sfilesystem-1.26\sand\s1.28\sare\schanged\saccordingly.\sOn\sUnix\s".."\sstays\sphysical,\sand\sa\strailing\s".."\safter\sa\srelative\slink\sis\snow\sresolved\s([3577801fff]).\sTests\swinFile-6.1,\s6.2\sand\sfilesystem-1.57.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 3183016fffffffffffffffffffffffffffffffff
U serhiy.storchaka
Z 10421fb86bd50f0986f33388514f7f67