Skip to content
Tcl Source Code Artifact [99399b9906]
Login

Artifact [99399b9906]

Artifact 99399b9906bc3bb020368b0b5e63225ceab8029b946580f94d78e0dfda1f44ab:

Ticket change [99399b9906] - Ticket [596936dd2d55ba70|596936dd2d] <i>auto_execok uses cmd in preference to cmd.exe despite path order (windows)</i> status still Open with 3 other changes by juliannoble2 on 2023-11-06 12:04:28.
D 2023-11-06T12:04:28.483
J icomment Yes,\sI\stested\sin\scmd\sand\spwsh\sshells\sand\sthey\sfind\sthings\sin\sa\sdifferent\sorder\sto\sTcl\s-\sthis\sreally\sneeds\sto\sbe\sfixed.\r\n\r\nThere\sare\sother\sdemons\shere.\r\nThe\spaths\sretrieved\sby\ssplitting\son\sthe\sPATH\senv\svar\ssometimes\send\swith\sa\sslash.\r\n\r\nWhen\syou\sdo\sa\sglob\s-dir\s$dir\s-tail\son\sa\sdir\sending\sin\sa\sslash\s-\sit\scan\sreturn\s/name\sinstead\sof\sjust\sname\s\r\n\r\nThen\sthe\sfile\sjoin\sfails\sto\swork\sas\sit\stakes\sthe\sname\sas\san\sabsolute\spath\sand\sdoesn't\sadd\sthe\sdir.\r\n\r\n\s#with\strailing\sslash\sin\spath\r\n\s%\sset\spath\s{C:\\Program\sFiles\\PowerShell\\7}\r\n\sC:\\Program\sFiles\\PowerShell\\7\r\n\s%\stcl::unsupported::representation\s$path\r\n\svalue\sis\sa\spure\sstring\swith\sa\srefcount\sof\s4,\sobject\spointer\sat\s0x1ea036f3270,\sstring\srepresentation\s"C:\\Program\sFi..."\r\n\s%\sappend\spath\s\\\\\r\n\sC:\\Program\sFiles\\PowerShell\\7\\\r\n\s%\stcl::unsupported::representation\s$path\r\nvalue\sis\sa\sutf32string\swith\sa\srefcount\sof\s2,\sobject\spointer\sat\s0x1ea036ef2e0,\sinternal\srepresentation\s0x1ea038c70b0:0x0,\sstring\srepresentation\s"C:\\Program\sFi..."\r\n\s%\sglob\s-dir\s$path\s-tail\spwsh.exe\r\n\s/pwsh.exe\r\n\r\n\r\n\s\r\n\s#without\strailing\sslash\s\r\n\s%\sset\spath\s{C:\\Program\sFiles\\PowerShell\\7}\r\n\sC:\\Program\sFiles\\PowerShell\\7\r\n\s%\stcl::unsupported::representation\s$path\r\nvalue\sis\sa\spure\sstring\swith\sa\srefcount\sof\s5,\sobject\spointer\sat\s0x1ea036f3270,\sstring\srepresentation\s"C:\\Program\sFi..."\r\n\s%\sglob\s-dir\s$path\s-tail\spwsh.exe\r\n\spwsh.exe\r\n\r\n\r\nWhether\sor\snot\sa\strailing\sslash\sshould\sstrictly\sexist\sat\sthe\send\sof\sa\spath\s-\sI\sbelieve\sit\sto\sbe\sfairly\scommon\son\swindows\s(some\sinstallers\sdo\sit)\sand\sit\sshould\swork.\r\n\r\nTcl8.5\son\sthe\sother\shand\sdoes\sit\scorrectly:\r\n\r\n%\sglob\s-dir\s"c:\\\\"\s-tail\swindows-version.txt\r\nwindows-version.txt\r\n\r\nversus\stesting\sin\s8.6,\s8.7,\s9.0\r\n%\sglob\s-dir\s"c:\\\\"\s-tail\swindows-version.txt\r\n/windows-version.txt
J login juliannoble2
J mimetype text/plain
K 596936dd2d55ba70dcdc980b9f58b3dccf248605
U juliannoble2
Z 78ec3c25f264a584de47f539265ae147