Skip to content
Tcl Source Code Artifact [6c4144718a]
Login

Artifact [6c4144718a]

Artifact 6c4144718aec18668e53ae0ece9777cb8116f597:

Ticket change [6c4144718a] - New ticket [219150ffffffffff|219150ffff] <i>&quot;catch&quot; doesn&#39;t catch &quot;expr&quot; syntax errors</i>. by nobody on 2000-10-26 05:02:20.
D 2000-10-26T05:02:20
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1149\sBug\nVersion:\s8.1b1\nSubmitDate:\s'1999-02-02'\nLastModified:\s'2000-05-19'\nSeverity:\sMED\nStatus:\sAssigned\nSubmitter:\spat\nChangedBy:\shobbs\nRelatedBugIDs:\s2248\nOS:\sLinux\nMachine:\sOther\nFixedDate:\s'1999-04-09'\nClosedDate:\s'2000-10-25'\n\n\nName:\nSteve\sMcAndrewSmith\n\nReproducibleScript:\n#\sThese\swork\sfine\ncatch\s{\sexpr\s1+1\s}\s\s;#\sno\serror\ncatch\s{\ssomeundefinedproc\s}\s;#\serror,\sbut\scaught\n\n#\sThese\sdon't!\s(the\serror\sis\snever\scaught)\ncatch\s{\sexpr\s1+-\s}\ncatch\s{\sexpr\sint(abc)\s}\n\n\n\nObservedBehavior:\nWhen\s"expr"\sgenerates\sa\ssyntax\serror,\sit\sis\snot\scaught\sby\sthe\s"catch"\scommand.\n\n\n\nDesiredBehavior:\nDuh.\s:-)\s\sCatch\sshould\sbehave\sthe\ssame\sfor\s"expr"\sas\sfor\sany\sother\serror.\n\n\n\n\n03/24/1999\s14:23\s-\sstanton\s-\sThis\sis\sthe\sexpected\s(if\snon-obvious)\sbehavior.\s\sThe\ssyntax\serror\sis\sdetected\sduring\scompilation\sof\sthe\scatch\scommand,\sso\sit\scannot\sbe\smasked.\s\sThis\sis\sa\schange\sfrom\s8.0\sand\sshould\sbe\sdocumented\smore\sclearly.\n---\n04/09/1999\s14:43\s-\ssurles\s-\sAdded\snecessary\sdocumentation\sand\san\sexample.\n--\nThis\swas\soriginally\snoted\sfixed\sin\s8.1b3,\sbut\sit\sis\sactually\sa\sbug,\nnot\sa\sdoc\sproblem.\s\sThe\swork-around\sis\sto\sdo:\n\s\s\s\sset\scmd\s{expr\s1+-}\n\s\s\s\scatch\s$cmd\s\n--\s05/19/2000\shobbs\n\n
J foundin obsolete:\s8.1b1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 10.\sObjects
J title "catch"\sdoesn't\scatch\s"expr"\ssyntax\serrors
J type Bug
K 219150ffffffffffffffffffffffffffffffffff
U nobody
Z 8525d5d3644e070c319fd3a1d1391e5d