Skip to content
Tcl Source Code Artifact [5a1a7830a3]
Login

Artifact [5a1a7830a3]

Artifact 5a1a7830a379fa4fcd9f8a2fe4165eec5bd69ef880146e0913d834695677d978:

Ticket change [5a1a7830a3] - Ticket [d8f12171564f57c9|d8f1217156] <i>windows dos device paths inconsistencies and missing functionality</i> status still Open with 3 other changes by juliannoble2 on 2024-08-13 08:28:57.
D 2024-08-13T08:28:57.650
J icomment >First\sof\sall:\sThe\swindows\spath\sprefixes\sare\s\\\\?\\\sand\s\\\\.\\,\snot\s//?/\sand\s//./.\sCommunicating\swith\sthe\swin32\sAPI,\salways\sbackslashes\sshould\sbe\sused.\sOf\scource,\sTcl\sshould\shandle\sthat\sfor\syou.\r\n\r\nYes\s-\sI\sprefer\sto\suse\sthe\s/\seven\sin\sexamples,\sbecause\swhether\sit's\swindows\sor\sTcl\sdoing\sthe\stranslating\s-\sthat\saspect\s'just\sworks'\swhereas\sexamples\susing\sbackslashes\stend\sto\shave\sescaping\scomplications.\r\n\r\nI\sdon't\sentirely\sagree\swith\sthe\scharacterisation\sof\sthe\s.\sand\s?\sdos\sdevice\spaths\sas\sa\shack\s-\sbut\sI\sdo\srecognise\sthat\sthey\salso\sprovide\saccess\sto\snamespaces\sand\sdevices\sthat\sdon't\snecessarily\sfit\swith\sthe\sconcept\sof\sfilesystems\s-\sand\sI\sdon't\spretend\sto\sunderstand\sall\sthe\sissues.\r\n\r\nThere\sare\suseful\sfilesystem\sbased\spaths\ssuch\sas\s//./Volume{<guid>}/\s\r\nThese\sallow\saccess\sto\sfor\sexample\sremovable\smedia\swithout\sa\sdrive\smapping\s-\sor\sfor\swhich\sthe\sdrive\smapping\sis\sundesirable\sto\suse\sas\sit\smay\schange.\r\nThis\scan\sbe\shandy\sfor\sbackup\srelated\sapplications\sfor\sexample.\r\n(see\soutput\sof\smountvol\scommand\sin\scmd\sor\spowershell)\r\nThese\scan\srepresent\sfilesystem\spaths\savailable\son\sthe\ssystem\s-\sand\sI\shad\sexpected\sTcl\sto\sbe\sable\sto\saccess\sthem.\r\n\r\nWhilst\sthe\sMAX_PATH\sissue\shas\sbeen\sone\sof\sthe\sreasons\sto\suse\sthis\ssyntax\sin\sthe\spast,\sI\sthink\sAPN\sis\sright\sthat\sthis\susecase\sis\snow\sless\simportant.\r\n\r\nThe\s//?/\sis\sI\sthink\salso\sstill\simportant\sfor\ssupport\sof\snot\sjust\strailing\sdots\s(and\strailing\sspaces)\s-\sbut\salso\sliteral\sglob\schars\ssuch\sas\s'*'\sor\s'?'\r\n\r\nI\ssuspect\sextending\sspecial\shandling\sto\sguess\swhen\sto\sadd\sthe\s//?/\sis\snot\sideal\s(would\shave\sto\shandle\saforementioned\sglobs\stoo?)\s\r\n\r\n\r\nIf\sit's\sdecided\sto\sjust\sremove\ssupport\s-\sI\sthink\sthat'd\sbe\sunfortunate,\sbut\sperhaps\scould\sbe\sworked\saround\swith\sthe\suse\sof\sextensions\slike\sTwapi.\r\n\r\n\r\nIf\sanything\s-\sI\sthink\svolumerelative\spaths\sshould\sbe\sa\smore\slikely\sor\sdesirable\scandidate\sfor\sremoval\s-\sas\sthey\stend\s(in\smy\sopinion)\sto\sbe\smore\suseful\sonly\sin\san\sinteractive\sshell\s-\sbut\sas\sTcl\sdoesn't\ssupport\sthe\sper-volume\scwd\s-\sthere\sare\salready\sbugs\sin\sthis\sarea\swhen\schanging\sdrives\sin\sTcl\sas\scompared\sto\swhat\shappens\sin\scmd.exe\sor\spowershell.\r\n\r\nAlso,\sperhaps\snot\sdirectly\srelated,\sbut\sin\sthe\sarea\sof\spath\shandling\s-\s'open\sc:/test/file:streamb\sw'\screates\san\sextra\sfile\susing\ssome\ssort\sof\ssubstitution\sfor\sthe\scolon\sinstead\sof\saccessing\san\salternate\sstream\sin\sc:/test/file\r\nI\scan't\ssee\sany\sway\sto\sread/write\sNTFS\salternate\sdata\sstreams\sfrom\stcl\swithout\sresorting\sto\sexternal\sexecutables\sor\sextensions(?)\r\n\r\nThat\s'open\sfileswithstream\sw'\sclobbers\sthe\salternate\sdatastream\sisn't\sideal\seither.\r\n\r\nAt\sthe\svery\sleast\sI'd\shave\sthought\swe\scould\suse\sthe\s//?/\ssyntax\sto\sbypass\swhatever\sTcl\sis\sdoing\son\ssuch\spaths\sand\slet\swindows\sgive\saccess\sto\sthe\sright\sstream.
J login juliannoble2
J mimetype text/plain
K d8f12171564f57c9ed3ca098d9498b9d76dfb3f7
U juliannoble2
Z d17b66a256d2ed181d9722b2c19affc0