<i>Allow ':' (';' on Windows) as separator in TCLLIBPATH</i> status still Open with 3 other changes
by
.
D 2024-10-19T08:49:17.556
J icomment The\sTcl\slist\sformat\sis\sthe\sbest\schoice\sfor\srepresenting\sdata\sin\sa\r\nplatform-agnostic\smanner.\s\sThis\sincludes\sstructured\sdata\sthat\sis\sstuffed\sinto\r\nenvironment\svariables.\s\sOne\sthing\sthat\sis\sunderappreciated\sis\sthat\swhen\sitems\r\nin\sa\sTcl\slist\sare\senclosed\sin\sdouble\squotes,\swith\scharacters\sin\sthe\senclosed\r\nvalue\sproperly\sescaped,\sthe\sTcl\slist\sis\sreadable\sby\sboth\sTcl\sand\sa\sPosix\sshell.\r\nThat\sis,\sit\sis\strivial\sto\swrite\san\ssh\sfunction\sthat\sproduces\sa\sTcl\slist,\sand\r\nthen\sfor\seither\san\ssh\sor\sTcl\sinterpreter\sto\sconsume\sthat\ssame\slist.\s\sThis\sis\r\nhow\sthe\slist\scan\sbe\sconsumed\sin\ssh:\r\n\r\n<code><verbatim>\r\nmylist="\\"one\stwo\\"\s\\"three\sfour\\"\s\\"five\ssix\\""\r\neval\sset\s--\s$mylist\r\nfor\si\sin\s"$@";\sdo\sprintf\s'%s\\n'\s"$i";\sdone\r\n</verbatim></code>\r\n\r\nIf\sTcl\sstandardizes\son\susing\sTcl\slists\sto\scommunicate\sstructured\sdata,\seach\r\nexisting\sand\sfuture\splatform\scan\seasily\sadapt\sthe\sdata\sto\smeet\sits\sown\sneeds.\r\nIt\salso\sallows\sthe\simplementation\sof\sTcl\sitself\sto\sremain\smore\ssimple.\s\sWhen\r\nthe\sformat\sof\sTCL_PACKAGE_PATH\swas\schanged\srecently,\sthe\sfollowing\scode\swas\r\nadded\sto\sparse\sthe\sforeign\sformat:\r\n\r\n\thttps://core.tcl-lang.org/tcl/info/c2a94d79f639037e\r\n\r\nAccretions\sof\ssuch\sadd-hoc\sparsing\sin\sthe\sTcl\scode\sbase\sover\stime\sare\sclearly\r\nundesirable.\sStandardizing\son\sTcl\slists\soffers\sa\sway\sto\sstay\sout\sof\ssuch\r\nmesses.
J login pooryorick
J mimetype text/x-fossil-wiki
K 3057b6261f7b7ac748fee8c2915c516d2bf05ffa
U pooryorick
Z f5283edbe58e2f34ea9c5830064124c9