.
D 2003-08-08T22:28:24
J assignee dgp
J closedate 2003-08-08T15:28:24
J closer dgp
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nYour\sexample\sscript\shas\sone\scommand,\s[proc].\n\nIts\sfirst\sargument\sis\s"bug"\nIts\ssecond\sargument\sis\s""\s(empty\sstring)\nTo\sdetermine\sthe\sthird\sargument,\sthe\sparser\nsees\sthat\sit\sis\squoted\swith\sa\sleading\s"{"\sso\sit\nstarts\sscanning\sthe\stext\sfor\sthe\smatching\s"}"\nthat\smarks\sthe\send\sof\sthe\sword.\n\n0\n{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s1\s\s\s\s\s\s\s\s\s\s\s\s\s\s1\nText\s"hello\show\sare\syou\s{\ssee\syou}"\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s1\s\s\s\s2\nmsglines\s[split\s$text\s"{"\s]\s{\nset\smsgline($linenumber)\s$msglines\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s2\nincr\slinenumber\s1}\n\s\s\s\s\s\s2\s\s\s\s\s\s\s\s\s2\s2\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s2\s2\s\s\s\s\s\s\s\s\s\s2\s2\nfor\s{set\sf\s0}\s{$f\s<$linenumber}\s{incr\sf\s1}\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\n\s\s\s\s\s\s\s\s\s\s\s2\nputs\s$config\s$msgline($f);puts\s$config\s$f}\n1\n}\s\n\n\n...and\syour\sscript\sends\swithout\sproviding\sthe\nclosing\s"}"\sto\send\sthe\sthird\sargument.\n\nThe\scorrect\sfix\sis\sto\suse\sbackslash-quoting\sto\nmark\sthose\s"{"\sand\s"}"\scharacters\sthat\sthe\sparser\nshould\snot\scount.\s\sSo\schange\sthe\s[split]\sline\sabove\nto\n\n\s\s\s\smsglines\s[split\s$text\s\\{\s]\s{\n\n
J login dgp
J mimetype text/plain
J resolution Invalid
J status Closed
J subsystem 45.\sParsing\sand\sEval
J username dgp
K 785392ffffffffffffffffffffffffffffffffff
U dgp
Z 38599be30d8aa564eda16de3e624934d