Skip to content
Tcl Source Code Artifact [0df67f45cb]
Login

Artifact [0df67f45cb]

Artifact 0df67f45cb1faf2c90c4abc827feda48fb06dd66:

Ticket change [0df67f45cb] - Closed ticket [541637ffffffffff|541637ffff]: <i>{puts stdout $msg} fails inside test</i> plus 7 other changes by dgp on 2002-06-26 08:11:36.
D 2002-06-26T08:11:36
J closedate 2002-06-26T01:11:36
J closer dgp
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nuggghhhh.\s\sIssue\s3\shas\sto\sdo\swith\show\sto\sinterpret\sthe\ssecond\nform\sof\sthe\stcltest::test\scommand.\s\stcltest::test\srecognizes\stwo\ndocumented\ssyntaxes:\n\n\s\s\s\stest\s$name\s$description\s?$opt\s$val\s...?\n\nand\n\n\s\s\s\stest\s$name\s$description\s$singleArgumentToBeParsed\n\nSupposedly\sthe\ssecond\sform\sis\shelpful\sbecause\sit\slets\sone\nenclose\severything\sin\sbraces\sand\savoid\sa\slot\sof\sbackslash\nquoting\nof\snewlines.\s\sTrouble\sis\sthat\sthe\srules\sfor\sparsing\sthat\ssingle\nargument\s(what\ssubstitutions\sare\sdone?\s\sin\swhat\scontext?)\sare\nnever\sdocumented\sclearly,\sand\sthe\scode\sthat\simplements\sthat\nparsing\sis\sa\smaze\sof\sobfuscation.\s\sI\sthink\sthe\scode\sis\sprobably\nwrong,\sbut\sI\sthink\sit's\swrong\sto\seven\soffer\sthe\ssecond\ssyntax.\nTcl\shas\ssimple\squoting\srules;\swhy\smuck\sup\sthis\scommand\swith\nits\sown\sundocumented\sspecial\sparsing\ssyntax.\n\nThe\sbackslash\snewline\sissues\scan\sbe\sjust\sabout\scompletely\naddressed\sby\sa\scoding\sconvention\sthat\splaces\sthe\snewlines\nwithin\sarguments\sthat\sare\sbrace-quoted\sanyway.\s\sSee\nmain.test\sfor\san\sexample.\n\nBut,\sI'm\snot\sgoing\sto\schange\sthat\snow.\s\sWhatever\svoodoo\sis\nin\sthere,\sthere\smust\sbe\ssome\stest\ssuite\ssomewhere\sthat's\nusing\sit,\sso\sI\sdon't\sdare\schange\sit.\s\sIndeed\swhen\sI\sdisabled\nthe\s[concat]\svoodoo,\stests\sin\sthe\sTcl\stest\ssuite\sindeed\sdid\s\nbegin\sto\sfail.\n\nInstead,\sI\sjust\srecommend\sthat\syou\sdo\snot\suse\sthe\ssecond\nsyntax\sin\syour\sown\stest\ssuites.\s\sIt\sis\sdocumented\sthat\nthe\stwo\sforms\scan\sbehave\sdifferently.\s\sFrom\smy\sperspective,\nthe\sfirst\sform\sis\spredictable\s(if\syou\sknow\sTcl\ssubstitution\nrules);\nthe\ssecond\sform\sis\snot.\s\sAs\syou've\sdiscovered,\sthe\ssecond\nform\scan\scause\sthe\sdropping\sof\strailing\swhitespace\sthat\scan\nbe\simportant.\n\nRewrite\syour\sfoo.test\sas:\n\n\s\stest\sCLR-1.1\s{...}\s-body\s{\n\s\s\s\sputs\sstdout\shere...\n\s\s}\s-result\s{}\s-output\s"here\\n"\n\nand\sgo\sforward\sand\sprosper.\n
J login dgp
J mimetype text/plain
J resolution Wont\sFix
J status Closed
J username dgp
K 541637ffffffffffffffffffffffffffffffffff
U dgp
Z efb5c41d56e2fc585377c5f9625519d8