<i>Command line built with list not properly quoted</i> status still Open with 3 other changes
by
.
D 2024-09-19T08:20:55.622
J icomment Looking\sdeeper\sinto\sthe\sissue,\sI\sfind\sthat\sthe\sTcl\s8.6\scode\sthat\shandles\sthis\ssituation\s(Tcl_ListObjReplace())\scontains\sthe\sfollowing\scomment:\r\n```\r\n\s\s\s\s/*\r\n\s\s\s\s\s*\sNote\sthat\swhen\scount\s==\s0\sand\sobjc\s==\s0,\sthis\sroutine\sis\slogically\sa\r\n\s\s\s\s\s*\sno-op,\sremoving\sand\sadding\sno\selements\sto\sthe\slist.\sHowever,\sby\sflowing\r\n\s\s\s\s\s*\sthrough\sthis\sroutine\sanyway,\swe\sget\sthe\simportant\sside\seffect\sthat\sthe\r\n\s\s\s\s\s*\sresulting\slistPtr\sis\sa\slist\sin\scanonical\sform.\sThis\sis\simportant.\r\n\s\s\s\s\s*\sResist\sany\stemptation\sto\soptimize\sthis\scase.\r\n\s\s\s\s\s*/\r\n```\r\nOn\sTcl\s9.0\sa\sdifferent\sfunction\sis\sused\s(TclListObjAppendElements()),\swhich\sdoes\shave\sthe\soptimization\sthat\swas\swarned\sagainst.\sDisabling\sthe\sshortcut\swhen\selemCount\s<=\s0\sfixes\sthe\sproblem.
J login sbron
J mimetype text/x-markdown
K e38dce74e28420b6c1f44fba604c4ed6193a6391
U sbron
Z d366f130e3caf327ca36c1e68e6f8005