<i>exec broken for command having windows environment variables</i> status still Open with 3 other changes
by
.
D 2023-11-02T17:13:14.860
J icomment After\splaying\saround\swith\sit,\s!env!\sand\sthe\sdelayed\sexpansion\sflag\s/v\sare\sactually\sthe\ssafest\sway\sto\saccess\svariables\sas\sthey\sdon't\sseem\sto\sbe\sable\sto\sescape.\r\n\r\nuse\sof\s!var!\sdefinitely\sshouldn't\sbe\shindered\sin\smy\sopinion.\r\n\r\nThe\sissues\sare\spretty\scomplicated\s-\sbut\snote\sthat\spowershell\sand\scmd.exe\swithout\sTcl\sinvolvement\sshow\sthe\ssame\sissues,\sso\sit's\sarguable\swe\sshouldn't\sbe\slimiting\sTcl\stoo\smuch\shere\sanyway.\s\r\n\r\nI\swill\spost\ssome\smore\sinfo\son\sthe\score\slist\s-\sbut\sI\shave\sdeveloped\sa\s'runcmd'\sproof\sof\sconcept\susing\sjust\stwapi\sand\sscript,\swhich\squotes\swith\sthe\s^\s(caret\scharacter)\sand\sgives\sa\smuch\smore\sacceptable\sbalance\sof\sfeatures\svs\srisk\sI\sfeel.\sTo\suse\s%var%\scompletely\ssafely\sif\syou\sdon't\strust\syour\senvironment\svariables\swould\srequire\srequire\sTcl\sto\sscan\sthe\svalues\s-\swhich\sI\sdon't\sthink\sis\spractical/desirable.
J login juliannoble2
J mimetype text/plain
K fb2fa9b3f6467ee66f543ec904e37aa8508f2fb1
U juliannoble2
Z 42327e925ca936397b64684592387cde