D 2023-10-26T11:41:11.613
J icomment For\sthis\sparticular\scase\sI\swould\suse\r\n\r\nexec\scmd\s/v\s/c\secho\s!SystemRoot!\r\n\r\n(which\sraises\sthe\squestion\sin\smy\smind\sof\swhy\s%\sis\seven\streated\sdifferently)\r\n\r\nI'd\salso\snote\sthat\s%\sis\sa\slegitimate\scharacter\sin\sthe\sNTFS\sfilesystem\s-\sso\sthis\ssort\sof\smagic\squoting\sof\s%\scan\sinterfere\sin\sother\splaces\s:/\r\n\r\nI\sam\sstrongly\sof\sthe\sopinion\sthat\sall\sthis\ssort\sof\squoting\sin\sexec/open\sis\sa\smistake.\s\r\nI\sappreciate\sthe\seffort\smade\sin\sanalysing\shttps://core.tcl-lang.org/tcl/info/21b0629c81\sas\sa\s'vulnerability'\sbut\sI\sdisagree.\sIt's\sat\sbest\san\sargument\sfor\sa\snew\shigher\slevel\sfunction\sor\swrapper\sover\sexec.\sI'm\ssorry\sI\smissed\sthe\schance\sto\srail\sagainst\sthis\schange\swhen\sit\shappened.\r\n\r\nIf\sTcl\sis\sto\sfunction\sas\sa\sglue\slanguage\swe\sneed\sthe\sprimitives\sto\sshoot\sourselves\sin\sthe\sfoot\sand\spass\sthings\sverbatim\sto\sthe\sunderlying\scommands\sas\smuch\sas\spossible.\sWe\srespect\sthat\sTcl\scommands\shave\sthe\sfreedom\sto\sinterpret\stheir\sarguments\sas\sthey\swish\s-\swe\sshould\srespect\sthat\scommandlines\scan\sbe\sinterpreted\sas\sthey\swish\s-\sincluding\sas\sto\show\sthey\sdo\sor\sdon't\sseparate\sarguments.\r\n\r\nThat's\ssomewhat\sat\sodds\swith\sproviding\sa\sneat\sinterface\sthat\sone\scan\ssafely\sthrow\sarguments\sat\s-\sbut\sthe\scurrent\ssituation\smakes\sreasoning\sabout\swhat\sis\sgoing\son\sso\smuch\sharder\sand\scripples\sTcl.\r\n\r\nExec/Open\salready\shad\ssome\soddities\sbefore\sthis\s-\sso\sthey\sweren't\sperfect\s-\sbut\sthis\smakes\sthe\ssituation\sthat\smuch\sworse.
J login juliannoble2
J mimetype text/plain
K fb2fa9b3f6467ee66f543ec904e37aa8508f2fb1
U juliannoble2
Z 2d80081f5560b782f4f72df375067dc9