Skip to content
Tcl Source Code Artifact [f73fa5201d]
Login

Artifact [f73fa5201d]

Artifact f73fa5201d7afe495c6e3d7313f53cb5f71e9f434c6191b6a60b7a9b1c011d75:

Ticket change [f73fa5201d] - New ticket [95061fc746ea9d8d|95061fc746] <i>Line number discrepency</i>. by anonymous on 2021-06-02 05:10:49.
D 2021-06-02T05:10:49.729
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment My\scommand\sinterface\sis\sTcl\sbased\sand\smy\saim\sis\sto\sknow\sthe\sline\snumber\sof\sa\sparticular\scommand\sgiven\sin\sa\sfile\sof\sTcl\scommands.\sIn\sorder\sto\sknow\sthe\sline\snumber\sof\sthe\scommand,\sI\sexecute\sthe\sfollowing\sin\smy\sprogram.\r\n\r\nget\sdict\s[info\sframe\s-1]\sline\r\n\r\nThis\sworks\sperfectly\sin\smost\scases.\sHowever,\sthere\sis\sone\scorner\scase\sas\sbelow.\r\n\r\n1:\sIf\s{\s1\s}\s{\r\n2:\s\s\s\s\s\s\s\s\s\s\s\smy_command1\s-option1\s{\sobject1\s\\\r\n3:\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\sobject2\s\\\r\n4\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\sobject3\s}\r\n5:\s\s\s\s\s\s\s\s\s\s\s\smy_command2\s….\r\n6:\s}\r\n\r\nFor\smy_command1,\sI’m\sgetting\sthe\sline\snumber\scorrectly\sas\s2.\sBut\smy_command2,\sI’m\sgetting\sthe\sline\snumber\sas\s3\sand\snot\sas\s5.\r\n\r\nIf\sI\stry\sthe\ssame\sset\sof\scommands\sby\scommenting\s‘if’\sconstruct,\sI\sget\sline\snumber\sof\smy_command2\scorrectly\sas\s5!\r\n\r\n1:\s#If\s{\s1\s}\s{\r\n2:\s\s\s\s\s\s\s\s\s\s\s\smy_command1\s-option1\s{\sobject1\s\\\r\n3:\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\sobject2\s\\\r\n4\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\sobject3\s}\r\n5:\s\s\s\s\s\s\s\s\s\s\s\smy_command2\s….\r\n6:\s#}\r\n\r\nI’m\swondering\sif\sthis\sis\sa\sbug\swith\sTcl\s‘info\sframe’\scommand.\sDo\syou\sknow\sif\sthis\sis\sa\sknown\sissue?\sIs\sthere\sanything\sI\scould\sdo\sto\sfix\sthis\sproblem?\r\n\r\nThanks\sand\sregards
J is_private 0
J login anonymous
J priority 5\sMedium
J resolution None
J severity Important
J status Open
J submitter anonymous
J subsystem 17.\sCommands\sI-L
J title Line\snumber\sdiscrepency
J type Bug
K 95061fc746ea9d8d4c2c244e4f6daa3e6b472150
U anonymous
Z 4546325748930290f8ffd6686f6769c9