.
D 2000-10-26T00:45:30
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2441\sBug\nVersion:\s8.0.5\nSubmitDate:\s'1999-07-23'\nLastModified:\s'1999-08-04'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nRelatedBugIDs:\s2474\nOS:\sIRIX\nOSVersion:\salso,\sNT\s4.0sp4\nMachine:\sOther\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-08-04'\n\n\nName:\n\nDavid\sLaur\n\n\n\nCustomShell:\n\nusing\sONLY\sScriptics\ssupplied,\n\n\n\nComments:\n\nObviously\sfor\sthe\ssimple\sexample\sabove\sI\scan\seasily\sescape\sthe\sbraces,\n\n\s\s\s\sthis\sis\sphenomenally\suntrue\sof\sthe\sreal\sapp.\n\n\s\s\s\s\n\n\s\s\s\sThanks!\n\n\s\s\s\sDavid\n\n\n\nReproducibleScript:\n\nAs\sfar\sas\sI\sknow,\sthis\sis\sa\slong-standing\sproblem\swith\sthe\sTcl\sparser,\n\n\s\s\s\sso\slong\sin\sfact\sthat\sI\swonder\sif\sthis\sis\smaybe\sa\suser-error\son\smy\spart?\n\n\s\s\s\s\n\n\s\s\s\sThere\sappear\sto\sbe\sseveral\s"parsing\sscenarios"\sin\seffect\swhen\susing\n\n\s\s\s\sTcl,\n\n\s\s\s\sand\stheir\sbehavior\sregarding\sthis\sproblem\sis\ssubtly\sdifferent,\salthough\n\n\s\s\s\srelated.\s\sAlso,\sbehavior\son\sWindows\sis\sslightly\sdifferent\sthan\sUnix.\n\n\s\s\s\s\n\n\s\s\s\sBasically,\sstring\scontaining\scurly\sbraces\sare\snot\salways\sparsed\n\n\s\s\s\scorrectly.\n\n\s\s\s\s\n\n\s\s\s\sI'm\sbeing\shit\svery\shard\sby\sthis\sproblem\sright\snow\ssince\sI'm\strying\sto\n\n\s\s\s\suse\n\n\s\s\s\sTcl\sto\sgenerate\scode\s(Tcl\sand\sC\ssource\scode)\swhich\scontains\sbraces.\n\n\s\s\s\s\n\n\s\s\s\sConsider\sthe\sfollowing\sfive\slines:\n\n\s\s\s\s\n\n\s\s\s\s---------\sbegin\ssnippet\s-------\n\n\s\s\s\sputs\s"}"\n\n\s\s\s\sproc\sx\s{}\s{\n\n\s\s\s\s\s\s\sputs\s"}"\n\n\s\s\s\s}\n\n\s\s\s\sx\n\n\s\s\s\s-----------\send\ssnippet\s-------\n\n\s\s\s\s\n\n\s\s\s\sI\sexpect\sthat\sthis\scode\swill\sprint:\n\n\s\s\s\s}\n\n\s\s\s\s}\n\n\s\s\s\sin\sall\scircumstances.\n\n\n\nObservedBehavior:\n\nScenario\sOne\s-\sentering\sthe\scommands\svia\sthe\stcl\sstdin\sprompt:\n\n\s\s\s\s\n\n\s\s\s\s<dml>\sprotclsh80\n\n\s\s\s\s%\sputs\s"}"\n\n\s\s\s\s}\n\n\s\s\s\s%\sproc\sx\s{}\s{\n\n\s\s\s\s\s\s\sputs\s"}"\n\n\s\s\s\sextra\scharacters\safter\sclose-brace\n\n\s\s\s\s%\n\n\s\s\s\s\n\n\s\s\s\s\n\n\s\s\s\sScenario\sTwo\s-\s\ssourcing\sa\sfile\scontaining\sthose\sfive\slines:\n\n\s\s\s\s\n\n\s\s\s\s<dml>\sprotclsh80\n\n\s\s\s\s%\ssource\stest.tcl\n\n\s\s\s\sextra\scharacters\safter\sclose-brace\n\n\s\s\s\s%\sset\serrorInfo\n\n\s\s\s\sextra\scharacters\safter\sclose-brace\n\n\s\s\s\s\s\s\s\swhile\scompiling\n\n\s\s\s\s"proc\sx\s{}\s{\s..."\n\n\s\s\s\s\s\s\s\s(file\s"test.tcl"\sline\s2)\n\n\s\s\s\s\s\s\s\sinvoked\sfrom\swithin\n\n\s\s\s\s"source\stest.tcl"\n\n\s\s\s\s%\n\n\s\s\s\s\n\n\s\s\s\s\n\n\s\s\s\sScenario\sThree\s-\sthe\stest\sfile\sspecified\sas\stclsh\sstartup\sscript\n\n\s\s\s\s\n\n\s\s\s\s<dml>\sprotclsh80\stest.tcl\n\n\s\s\s\sextra\scharacters\safter\sclose-brace\n\n\s\s\s\s\s\s\s\swhile\scompiling\n\n\s\s\s\s"proc\sx\s{}\s{\s..."\n\n\s\s\s\s\s\s\s\s(file\s"test.tcl"\sline\s2)\n\n\s\s\s\s\n\n\s\s\s\s\n\n\s\s\s\sOn\sWindows\s(NT)\sI\sget\ssimilar,\sbut\snot\sidentical\serrors.\n\n\n\nDesiredBehavior:\n\nI\swould\sexpect\sthe\sparser\sto\srecognize\swhen\sit\shas\sentered\sa\squoted\n\n\s\s\s\sstring\sand\swhen\sit\shasn't.\n\n\n\n\n\n
J foundin final:\s8.0.5
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title tcl\sparser\shas\sproblems\swith\sbraces\sin\sstrings
J type Bug
K 217891ffffffffffffffffffffffffffffffffff
U nobody
Z 47f38331e80ec4cfd90363ae302adbeb