Skip to content
Tcl Source Code Artifact [9f1078d473]
Login

Artifact [9f1078d473]

Artifact 9f1078d473104bac57fe5e90f1032f587213ade7a037cc49287a113a86c32b1b:

Ticket change [9f1078d473] - Ticket [4dc35e0c0cf24b4a|4dc35e0c0c] <i>auto_execok on windows not always using absolute path</i> status still Open with 3 other changes by apnadkarni on 2025-01-26 10:23:54.
D 2025-01-26T10:23:54.750
J icomment Nevertheless,\sI\sbelieve\sthis\s`auto_exec`\sbehavior\sis\sworth\srevisiting\sthough\sI'm\snot\scertain\sof\swhat\sthe\sright\sbehavior\sshould\sbe.\sAt\sthe\svery\sleast\sI\sdo\snot\sthink\sit\sshould\scache\sresults.\sWhat\syou\sreport\sis\sone\sresult\sof\sthe\scache.\sThe\sother\sis\sthe\susual\sproblem\swith\scaches\s-\spicking\sup\sstale\sresults\sor\sresults\sinconsistent\swith\sPATH.\sFor\sexample,\s(cmd\sprompts\sremoved\sfor\sclarity)\r\n\r\n```\r\n%\swriteFile\sc:/bin/x.bat\s"echo\s%~dp0"\r\n%\s{*}[auto_execok\sx]\r\nC:\\Bin\\\r\n%\swriteFile\s./x.bat\s"echo\s%~dp0"\r\n%\s{*}[auto_execok\sx]\r\nC:\\Bin\\\r\n%\sexec\s./x.bat\r\nD:\\src\\\r\n```\r\nThe\ssecond\s`auto_execok`\sstill\sruns\sthe\sC:\\bin\sversion\sof\sx.bat\sinstead\sof\sthe\sone\sin\sthe\scurrent\sdirectory.\sThis\sis\swrong\simo.\sThe\ssame\swould\salso\shappen\seven\sif\sboth\sfiles\salready\sexisted\sbut\sCWD\swas\schanged.\r\n\r\nThe\s`auto_reset`\ssolution\sis\snot\ssatisfactory\sbecause\sone\sdoes\snot\salways\sknow\swhen\sit\swill\sbe\sneeded.\sIt\salso\shas\sthe\sside\seffect\son\s`auto_load`.\r\n\r\nRemoval\sof\sthe\scache\shas\sa\sperformance\scost.\sHowever,\saside\sfrom\scorrectness\sbeing\smore\simportant,\sI\ssuspect\sthis\sis\snegligible\scompared\sto\sthe\scost\sof\screating\sa\snew\sprocess\sanyways.\sApplications\swhere\sit\smatters\scan\scache\sit\sfor\sthemselves.
J login apnadkarni
J mimetype text/x-markdown
K 4dc35e0c0cf24b4a997556b70396d998ebb6adfe
U apnadkarni
Z b77209efe1afd54f0afad175718720dc