Skip to content
Tcl Source Code Artifact [59bc7fa31a]
Login

Artifact [59bc7fa31a]

Artifact 59bc7fa31a21a559f2f7e4169eb8e70b74940f180cede35b69c6ad293f1a14d1:

Ticket change [59bc7fa31a] - New ticket [f91ab723f3dfbc0d|f91ab723f3] <i>exec+wish fails to handle windows batch file with arguments and spaces</i>. by anonymous on 2024-02-22 21:36:06.
D 2024-02-22T21:36:06.233
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment Reproduce\sthe\serror\swith\sthe\sfollowing\scode\srun\sin\swish\sconsole\son\sWindows.\sNote\sthat\sthis\sworks\sfine\sin\stclsh:\r\n\r\n#Test4:\r\nset\sbatFile\s{C:\\batTest\\bat\stest\\test.bat}\r\nset\sarg1\s{arg\swith\sspaces}\r\nset\sarg2\s8\r\nset\scommand\s[list\s$batFile\s$arg1\s$arg2]\r\nexec\s{*}$command\r\n\r\nOutput:\r\n'C:\\batTest\\bat'\sis\snot\srecognized\sas\san\sinternal\sor\sexternal\scommand,\r\noperable\sprogram\sor\sbatch\sfile.\s\r\n\r\n\r\nWhere\sthe\sbat\sfile\sjust\soutputs\sall\sarguments\sgiven:\r\n@echo\soff\r\n(for\s%%a\sin\s(%*)\sdo\s(\r\n\s\s\s\secho\s%%a\r\n))\s\r\n\r\n\r\nProper\soutput\scan\sbe\sreproduced\sif\sthe\sspace\sif\sremoved\sfrom\sthe\sbat\sfile\spath\sor\sthe\sargument:\r\n\r\n(bin)\s54\s%\s#Test1:\r\nset\sbatFile\s{C:\\batTest\\bat\stest\\test.bat}\r\nset\sarg1\s{argNoSpaces}\r\nset\sarg2\s8\r\nset\scommand\s[list\s$batFile\s$arg1\s$arg2]\r\nexec\s{*}$command\r\n\r\nOutput:\r\nargNoSpaces\r\n8\s\r\n\r\n\r\n(bin)\s64\s%\s#Test3:\r\nset\sbatFile\s{C:\\batTest\\test.bat}\r\nset\sarg1\s{arg\swith\sspaces}\r\nset\sarg2\s8\r\nset\scommand\s[list\s$batFile\s$arg1\s$arg2]\r\nexec\s{*}$command\r\n\r\nOutput:\r\n"arg\swith\sspaces"\r\n8\s\r\n\r\nI\shave\stested\sthis\sin\san\solder\sversion\sof\stcl\s(8.5.9)\sand\sit\sworks\sfine.
J foundin 8.6.13
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 21e0fa2b63977f4985a360a3d6914b25a98dd2d0
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 16.\sCommands\sA-H
J title exec+wish\sfails\sto\shandle\swindows\sbatch\sfile\swith\sarguments\sand\sspaces
J type Bug
K f91ab723f3dfbc0d2b720a70a1fa09eebfa1cde5
U anonymous
Z cff7c080c1cb391ab190ba1f02ac9e90