Skip to content
Tcl Source Code Artifact [83049b902f]
Login

Artifact [83049b902f]

Artifact 83049b902fb9a37ccec86cdde338e64b9d4e5af5:

Ticket change [83049b902f] - Ticket [971976ffffffffff|971976ffff] <i>Inconsistent naming in [file exists]</i> status still Open with 4 other changes by vincentdarley on 2004-07-07 00:25:28.
D 2004-07-07T00:25:28
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nThe\sfile\snormalize\sdocumentation\ssays\s"Returns\sa\sunique\nnormalised\spath\srepresentation\sfor\sthe\sfile-system\nobject\s(file,\sdirectory,\slink,\setc),\swhose\sstring\svalue\scan\nbe\sused\sas\sa\sunique\sidentifier\sfor\sit.\s",\sso\sI\sthink\sthis\nsays\spretty\sclearly\sthat\s$file\sand\s[file\snorm\s$file]\smust\nrefer\sto\sthe\ssame\sthing,\sso\sit\slooks\slike\swe\sboth\sagree\swith\nTcl\son\sthat.\n\n>It's\sjust\sthat\speople\svery\soften\s\n>don't\swant\sto\sfeed\snormalized\spaths\n>to\sthe\sunderlying\sOS\sbecause\sthey\sare\sreally\sseeking\sto\sgain\n>information\sabout\show\sthe\sOS\sinterprets\sthat\sdenormalized\sform.\n\nHold\son!\sThat's\sa\svery\sstrong\sstatement.\s\sWhy\sdo\syou\ssay\sthat?\n\nWhen\sI\suse\sTcl\sI\swant\sto\soperate\son\sfiles,\sdirectories\sor\nwhatever,\sand\shave\sno\sinterest\sat\sall\sin\sgaining\sany\ninformation\sabout\show\sthe\sOS\sinterprets\sanything.\n\nIf\syou\sreally\sbelieve\sthat's\swhat\s'people\svery\soften\swant',\nthen\sTcl\s8.4\stook\sa\shuge\sswerve\sin\sthe\swrong\sdirection\sfor\nthose\speople\s-\spretty\smuch\sby\s_definition_\sTcl\soperates\son\nnormalized\spaths\snow.\n\nAnyway,\sassuming\sI've\sgot\sthe\swrong\send\sof\sthe\sstick\son\sthis\nlast\sbit,\sit\ssuggests\swe've\shomed\sin\son\sthe\sproposal\sthat\n'file\snorm'\sshould\spreserve\sa\ssingle\strailing\s'/',\sand\ntherefore\sthat\s'file\sexists\sfileName/'\swill\sreturn\s0,\sbut\nthat\swe\shave\sthe\spossibility\sthat\sthere\sare\stwo\sdistinct\nnames\swhich\smight\srefer\sto\sthe\ssame\sfilesystem\sentity,\sif\nthat\sentity\sis\sa\sdirectory:\n\n[file\snorm\sdirName]\s!=\s[file\snorm\sdirName/]\n\nand\syet\sboth\srefer\sto\sthe\ssame\sthing,\sso\swe'll\sneed\sto\ndocument\sthis\sinteresting\squirk.\n\nI\sdon't\sknow\swhether\ssuch\sa\schange\srequires\sa\sTIP\sor\snot.\sIt\ncertainly\srequires\sa\sbunch\sof\snew\stests\sand\sdocs.\n\n\n\n\n
J login vincentdarley
J mimetype text/plain
J username vincentdarley
K 971976ffffffffffffffffffffffffffffffffff
U vincentdarley
Z 63f513d6a3e5ea36c5cdfe6127365cc6