<i>[file normalize] changes file reference</i> status still Open with 7 other changes
by
.
D 2018-06-28T19:06:41.989
J assignee aku
J closer nobody
J comment %\sglob\s*\r\nfile\r\n%\sopen\snoSuchDir/../file\r\ncouldn't\sopen\s"noSuchDir/../file":\sno\ssuch\sfile\sor\r\ndirectory\r\n%\sopen\s[file\snormalize\snoSuchDir/../file]\r\nfile3\r\n\r\nHere\s[file\snormalize]\sconverts\r\n"noSuchDir/../file"\sto\s"file",\sbut\r\nand\s[open]\son\sone\sfails,\sthe\s\sother\r\nsucceeds.\r\n\r\nI\sthink\sof\s[file\snormalize]\sgiving\sme\r\nthe\spreferred\sname\samong\smany\r\nnames\sfor\sone\sfile.\s\sHere\sit\sis\r\nconvering\sa\sstring\sthat\snames\sno\r\nfile\sinto\sone\sthat\sdoes\sname\sa\sfile.\r\n\r\nThis\ssuggests\sthat\s/../\sinterpretation\r\nis\sTcl_Filesystem-specific\sand\r\nought\sto\sbe\sdone\sin\seach\sTcl_Filesystem's\r\nTcl_FSNormalizePathProc\srather\r\nthan\sin\sthe\score\sFS\slayer.
J icomment \r\nThe\srules\sof\spath\sresolution\sby\slinux\ssystem\scalls\sare\sspelled\sout\shere.\r\n\r\n\s\shttp://man7.org/linux/man-pages/man7/path_resolution.7.html\r\n\r\nAccording\sto\sthem,\sTcl\sneeds\sto\spass\sthe\s"/.."\ssubstrings\sof\sthings\r\nlike\s/path/to/../foobar\sto\sthe\ssystem\scalls\sintact\sto\sget\sthem\sprocessed\r\nproperly\sagainst\sthe\sstate\sof\sthe\sfilesystem.\sLexical\sshortening\sdue\sto\r\n"normalization"\sor\sfor\swhatever\sother\sreasons\slurk\sin\sthe\score\sof\r\nTcl\sfilesystem\soperations\sto\spass\s/path/foobar\sinstead\sare\sincorrect.\r\n\r\nThat\sis,\sthey\screate\sa\ssystem\swhere\sthe\smeaning\sof\spaths\sin\sTcl\sare\r\ndemonstrably\sinconsistent\swith\sthe\smeaning\sof\spaths\son\sthe\splatform\r\nitself.\s\sIf\sTcl\sreally\sdoes\smean\sto\sintentionally\sbe\sdifferent,\sthat\r\nneeds\sa\slot\smore\sexplanation\sand\sspelling\sout.\s\sI\sthink\sit's\sjust\sa\r\nbroken\simplementation.
J login dgp
J mimetype text/plain
J severity Minor
K 961646ffffffffffffffffffffffffffffffffff
U dgp
Z c89f8b00bb9d9878d51bbdb7c715ec9f