<i>auto_execok on windows not always using absolute path</i> status still Open with 3 other changes
by
.
D 2025-01-27T15:19:12.334
J icomment Having\srethought\sthis\sa\slittle\sand\splayed\swith\svarious\soptions\s-\sI\sthink\sthe\smain\sproblem\sis\sfrom\sattempting\sto\sresolve\splain\s(no\spath\sseparator)\scommands\sin\sthe\sCWD.\r\n\r\nAlthough\scmd.exe\sdoes\sresolve\scmdfoo\sfirst\sin\sthe\scurrent\sdirectory,\sunix\sand\spowershell\sboth\srequire\s./cmdfoo\sif\sone\swants\sto\srun\swhat's\sin\sthe\scurrent\sdirectory.\r\n\r\nPerhaps\sfrom\smuscle-memory\sin\scmd.exe\sI'm\sused\sto\sthat\sand\sfound\sit\squite\sconvenient\s-\sbut\smicrosoft\shas\smoved\saway\sfrom\sit\s(apparently\sciting\ssecurity\sconcerns)\sand\sthe\srest\sof\sthe\sworld\sdon't\sseem\sto\sdo\sit.\r\n\r\nI\sbelieve\sthe\sargument\sgoes\sthat\sinteractive\sshell\susers\sare\slikely\sto\stype\scommon\scommands\ssuch\sas\sls,\sgrep\setc\swhilst\slooking\saround\svarious\sdirectories\s-\sand\sa)\sexpect\sthe\scommand\sresolved\sin\sthe\spath\sto\sbe\salways\sthe\sone\sused,\sb)\sthat\stheoretically\sa\smalicious\sexecutable\sbinary\scould\ssomehow\slie\sin\swait\sin\sa\sfolder\sthat\sa\suser\sthen\sruns\sby\saccident.\r\nI'm\snot\ssure\show\svalid\sthe\ssecurity\sargument\sis\sthere\s-\sbut\sit\sseems\svaguely\splausible.\r\n\r\nIf\sTcl\sbehaved\ssimilarly\s-\swe\scould\sretain\sthe\sbenefits\sof\scaching\sand\savoid\sthe\sanomalies.
J login juliannoble2
J mimetype text/plain
K 4dc35e0c0cf24b4a997556b70396d998ebb6adfe
U juliannoble2
Z ed98a2e1279cef0a14ef7673f6e2fd99