Skip to content
Tcl Source Code Artifact [2b6fccb1a7]
Login

Artifact [2b6fccb1a7]

Artifact 2b6fccb1a7bfeb65b051c8a1c88230631a28ebd2:

Ticket change [2b6fccb1a7] - New ticket [219119ffffffffff|219119ffff] <i>some order of options to lsort results in strange error</i>. by nobody on 2000-10-26 01:11:03.
D 2000-10-26T01:11:03
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s6212\sBug\nVersion:\s8.4a1\nSubmitDate:\s'2000-09-05'\nLastModified:\s'2000-09-17'\nSeverity:\sLOW\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\sericm\nOS:\sAll\nFixedDate:\s'2000-09-17'\nFixedInVersion:\s8.4a2\nClosedDate:\s'2000-10-25'\n\n\nName:\nHarald\sKirsch\n\nReproducibleScript:\n#\srun\sthis\sscript.\n\nproc\scmplen\s{a\sb}\s{\n\s\sreturn\s[expr\s{[string\slength\s$a]\s-\s[string\slength\s$b]}]\n}\n\nset\sS\s{\n\s\s{xxx\s"sdafkj\s"}\n\s\s{yyy\s"sf"}\n}\n\nputs\s[lsort\s-index\s1\s-command\scmplen\s-decreasing\s$S]\nputs\s---------\nputs\s[lsort\s-command\scmplen\s-decreasing\s-index\s1\s$S]\n\nObservedBehavior:\nBoth\slsort\scommands\sshould\swork,\sbut\sonly\sthe\sfirst\sone\sdoes.\sThe\s2nd\sgives\sthe\serror\n\ninvalid\scommand\sname\s"1"\n\s\s\s\swhile\sexecuting\n"1\s{sdafkj\s}\ssf"\n\s\s\s\s(-compare\scommand)\n\s\s\s\sinvoked\sfrom\swithin\n"lsort\s-command\scmplen\s-decreasing\s-index\s1\s$S"\n\s\s\s\sinvoked\sfrom\swithin\n"puts\s[lsort\s-command\scmplen\s-decreasing\s-index\s1\s$S]\n\nDesiredBehavior:\nNo\serror\sshould\soccur.\n\n\n\nPatch\sfrom\sKuchler\s(needs\stests\sas\swell):\n\nThe\sfollowing\schange\sto\sthe\scurrent\sCVS\s8.4\ssources\swill\nfix\sthe\sproblem.\s\sFor\sthose\sworking\soff\sof\san\solder\sversion,\nsimpley\sremove\sthe\s'cmdPtr\s=\sobjv[i+1];'\sline\sfrom\ntclCmdIL.c\sin\sthe\sfunction\sTcl_LsortObjCmd\sin\sthe\shandling\nfor\sthe\s'-index'\sflag\sin\sthe\sargument\sprocessing\sfor\sloop.\n\ndiff\s-c\s-r1.27\stclCmdIL.c\n***\stclCmdIL.c\s\s2000/05/27\s23:58:01\s\s\s\s\s1.27\n---\stclCmdIL.c\s\s2000/09/05\s08:07:06\n***************\n***\s2759,2765\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!=\sTCL_OK)\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sreturn\sTCL_ERROR;\n\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\s\s\s\s\scmdPtr\s=\sobjv[i+1];\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\si++;\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sbreak;\n\s\s\s\s\s\s\s\s\s\s\s\scase\s6:\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s/*\s-integer\s*/\n---\s2759,2764\s----\n\n--\s09/05/2000\shobbs\n\nI\sapplied\sthis\spatch\sand\sadded\stest\scases\sfor\sit.\s\sThe\sfix\swill\sbe\sincluded\sin\sTcl\s8.4a2.\s\sNice\swork,\severybody.\n\n\s\s\sEric\sMelski\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\sThe\sOther\sTcl\sGuy\n\s\s\sericm\sat\sajubasolutions.com\s\s\s\s\s\s\s\s\s\s\s\sAjuba\sSolutions\n\n--\s09/17/2000\sericm\n\n
J foundin obsolete:\s8.4a1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 81.\sBundled\sPackages
J title some\sorder\sof\soptions\sto\slsort\sresults\sin\sstrange\serror
J type Bug
K 219119ffffffffffffffffffffffffffffffffff
U nobody
Z 38bf6cae7fa6d25cdb66649cf4b0738b