Skip to content
Tcl Source Code Artifact [3630a0d815]
Login

Artifact [3630a0d815]

Artifact 3630a0d815c6efac94521558912932718a74e4cf4e37801482526b00e93fbef3:

Ticket change [3630a0d815] - Ticket [1b8a893ded5f2a9b|1b8a893ded] <i>TCL_PACKAGE_PATH path is (wrongly) braced.</i> status still Open with 3 other changes by pooryorick on 2025-05-09 09:48:55.
D 2025-05-09T09:48:55.640
J icomment Hi\sHarald,\sthe\smain\suse\scase\sis\sconsumption\sby\sor\sfor\sa\sTcl\sinterpreter.\s\sTCL_PACKAGE_PATH\sand\sTCLLIBPATH\sare\sintended\sfor\sconsumption\sby\sa\sTcl\sinterpreter,\sso\sthey\sreally\sshould\sbe\sTcl\slists.\s\sIt's\sbackwards\sto\smodify\sTCL_PACKAGE_PATH,\swhich\sis\sintended\sfor\sconsumption\sby\sa\sTcl\sintepreter,\sso\sthat\sit\sis\sin\sthe\snative\sformat\sof\sanother\slanguage.\s\sDoing\sthis\scomplicates\sthe\stask\sof\sreading\sit\sfor\sa\sTcl\sinterpreter,\sand\sthere\swill\ssurely\sbe\sfuture\sbug\sreports\sbecause\sof\sthis\scomplication.\s\sSince\sthese\svariables\shappen\sto\sbe\sexposed\sin\sthe\senvironment,\snon-Tcl\sprograms\shave\saccess\sto\sthem,\sbut\sthey\swere\sintended\sto\sbe\spassed\sthrough\sto\sa\sTcl\sinterpreter,\snot\sdirectly\sused\sin\sanother\slanguage.\s\sEven\sso,\sin\s[3057b6261]\sI\sdescribed\show\sthe\sTcl\slist\sformat\scan\strivially\sbe\sconsumed\sby\ssh-family\slanguages,\sso\snot\sonly\sis\sthe\sTcl\slist\sformat\sthe\scorrect\sformat\sfor\svalues\sthat\sare\sintended\sto\sbe\sread\sby\sTcl\sinterpreters,\sbut\sit\sis\salso\sa\sgood\sstandard\sformat\sfor\sconsumption\sby\sother\slanguages.\s\sThe\sTcl\slist\sformat\sis\sin\smany\scases\sactually\smore\sconvenient\sfor\sother\slanguages,\sbecause\sthese\sdays\sa\sshell\sscript\slike\stclConfig.sh\swhich\swas\sproduced\son\sone\splatform\smight\sfor\sone\sreason\sor\sanother\sbe\sconsumed\son\sanother\splatform.\s\sIn\sthis\scase,\sa\sTcl\slist\sis\smore\sconvenient\sthan\strying\sto\skeep\strack\sof\sall\sthe\sitem\sdelimiters\sone\smight\sencounter\sout\sin\sthe\swild.\r\n\r\nThis\schange\salready\s"sort\sof\sbroke"\sdgp's\sOOMMF\spackage,\sand\sit\scaused\ssome\sindigestion\sfor\ssome\sof\smy\sown\sscripts\sas\swell.\s\sThere\sare\smany\svariables\sin\stclConfig.sh\sthat\sare\sintended\sfor\suse\sin\san\ssh\sscript,\sand\snot\sintended\sfor\sconsumption\sby\sa\sTcl\sinterpreter.\s\sFor\smany\sof\sthose\svariables,\sthe\sTcl\slist\sformat\sdoes\snot\smake\ssense,\sbut\sfor\sTCL_PACKAGE_PATH\sand\sTCLLIBPATH,\sthe\sonly\sformat\sthat\smakes\sgood\ssense\sis\sthe\sTcl\slist\sformat.\s\sThe\sissue\sthat\soccurred\sin\sthe\sTCLTLS\scan\sjust\sas\seasily\sbe\ssolved\sby\shaving\sthe\srelated\sshell\sscripts\streat\sTCL_PACKAGE_PATH\sas\sa\sTcl\slist,\swhich\sas\sI\shave\salready\sshown,\sthey\scan\seasily\sdo.\s\sIt's\snot\sworth\sit\sto\skeep\sthis\sbroken\s"fix"\sin\splace\sjust\sbecause\sit\shas\sbeen\sincorporated\sdownstream\sin\sa\sfew\splaces.\r\n\r\nIt's\seasy\sto\sget\sshort-sighted\sby\sbeing\stoo\soriented\son\sa\sparticular\suse\scase\sand\sfixing\sthings\sfor\sthat\suse\scase,\sonly\sfor\sa\sconflicting\suse\scase\sto\sappear\slater.\s\sIf\sthe\sprincipal\sis\sthat\sthe\sTcl\slist\sformat\sshould\sbe\sused\sfor\sstructured\svalues\sintended\sfor\sconsumption\sby\sa\sTcl\sinterpreter,\sfurther\simplementation\scomplications\sand\suser\sissues\swill\sbe\savoided.\s\sA\speek\sat\sthe\simplementation\sof\sthe\s"fix"\sfor\sthis\sreport\sbears\sthat\sout.\s\sIf\sthe\s"fix"\sfor\sthis\sissue\sisn't\sreverted,\sthen\s[3057b6261]\sis\sprobably\seventually\sgoing\sto\sget\sresolved\sby\sapplying\sit\sto\sTCLLIBPATH\sas\swell,\swhich\swill\sprobably\scause\seven\smore\scomplications\sand\suser\sissues.
J login pooryorick
J mimetype text/x-fossil-wiki
K 1b8a893ded5f2a9b0c70a5893c7a2be3429d8033
U pooryorick
Z 628dc22e0975bb5238974f7a61c36457