.
D 2000-10-26T05:12:05
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s6103\sBug\nVersion:\s8.3.1\nSubmitDate:\s'2000-08-09'\nLastModified:\s'2000-10-25'\nSeverity:\sSER\nStatus:\sUnAssn\nSubmitter:\stechsupp\nOS:\sAll\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\nDon\sPorter\n\nComments:\nThe\ssource\sof\sthe\sproblem\sis\sin\stclParse.c,\n\s\s\s\sin\sthe\sroutine\sTcl_EvalTokens():\n\s\s\s\s\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\scase\sTCL_TOKEN_COMMAND:\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\scode\s=\sTcl_EvalEx(interp,\stokenPtr->start+1,\n\s\s\s\stokenPtr->size+2,\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\s0);\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s(code\s!=\sTCL_OK)\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sgoto\serror;\n\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\n\s\s\s\sThis\scode\seffectively\sconverts\sall\snon-TCL_OK\sreturn\scodes\n\s\s\s\sinto\sa\sTCL_ERROR\sreturn\scode,\swhich\sis\snot\scorrect.\s\sI\sdon't\n\s\s\s\ssee\san\simmediate\sfix,\sthough,\ssince\sTcl_EvalTokens()\sreturns\n\s\s\s\sa\sTcl_Obj,\snot\sa\sTcl\sreturn\scode.\s\sThere\sdoesn't\sseem\sto\sbe\n\s\s\s\sany\schannel\sfor\spassing\sback\sthe\sreturn\scode\sto\sthe\scaller.\n\s\s\s\s\n\s\s\s\sThis\ssame\sproblem\sis\sthe\scause\sof\sbug\sreport\s#2136,\sand\sit\n\s\s\s\smay\sbe\srelated\sto\sother\sbug\sreports\slinked\sto\s#2136.\n\s\s\s\s\n\s\s\s\sBTW,\sthe\sstatus\sof\sticket\s#2136\sis\s"Assigned".\s\sAny\sway\n\s\s\s\sto\sfind\sout\sto\swhom\sit\swas\sassigned?\n\nReproducibleScript:\n$\scat\sdemo1.tcl\n#\sFILE:\sdemo1.tcl\nputs\s[info\spatchlevel]\nreturn\n\n$\scat\sdemo2.tcl\n#\sFILE:\sdemo1.tcl\nputs\s[info\spatchlevel]\nlist\s[return]\n\nObservedBehavior:\n$\stclsh8.0\sdemo1.tcl\n8.0.5\n\n$\stclsh8.0\sdemo2.tcl\n8.0.5\n\n$\stclsh\sdemo1.tcl\n8.3.1\n\n$\stclsh\sdemo2.tcl\n8.3.1\n\s\n\s\s\s\swhile\sexecuting\n"list\s[return]\n"\n\s\s\s\s(file\s"demo2.tcl"\sline\s3)\n\nDesiredBehavior:\nI\sexpect\sthe\s[return]\scommand\sat\slevel\s#0\sof\nevaluation\sto\sbehave\sthe\ssame\swhether\sit\sis\s\ninvoked\sdirectly,\sor\sas\spart\sof\sa\scommand\nsubstitution.\s\sTcl\s8.0.5\sgets\sit\sright.\nTcl\s8.1.0\sand\severy\sTcl\ssince\sgets\sit\swrong,\nas\sdemonstrated\sabove\susing\sTcl\s8.3.1.\n\n\n\n
J foundin obsolete:\s8.3.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title inconsistent\s[return]\sat\slevel\s#0
J type Bug
K 219384ffffffffffffffffffffffffffffffffff
U nobody
Z bb3fba926c2e905b43b031dcd093ebf1