Artifacts Associated With Ticket 1374778
Ticket change [880ccf89d3] (rid 131803) by nobody on 2005-12-06 20:33:02:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The return for lsearch -start X $list Value is different when X >= end and Value is the last or non-last list element. set l {a b c d a b c d} lsearch -start 5 $l d returns 7, as expected lsearch -start 999 $l d returns 7 lsearch -start 999 $l c returns -1 - foundin initialized to: "obsolete: 8.4.12"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "lsearch -start inconsistent return"
- type initialized to: "Bug"
Ticket change [a435663a12] (rid 110176) by dkf on 2005-12-08 15:56:02:
- assignee changed to: "dgp"
Ticket change [6657d69c10] (rid 102698) by dkf on 2005-12-08 15:56:03:
- icomment:
Logged In: YES user_id=79902 Any opinion on whether to fix this for 8.4 or 8.5? Or should it just be closed as "meant to work that way"? Please assign back to me with the comment.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [75378352e7] (rid 105354) by dgp on 2005-12-08 23:58:55:
- assignee changed to: "dkf"
- icomment:
Logged In: YES user_id=80530 I would expect that lsearch -start $x $l $i with $x an integer would either return -1 (not found) or would return an integer greater than or equal to $x . [lsearch -start 999 $l d] => 7 goes against my expectations, and suggests the search did not start at index 999 as instructed, but started at index 7 instead. This looks like a bug to me, and as such ought to be fixed for 8.4.13. I'm willing to be talked out of that if this "feature" enables some particularly elegant coding of some particularly useful algorithm. In that case, I'd want really good documentation.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [6337261552] (rid 92538) by dkf on 2005-12-09 21:40:24:
- closedate changed to: "2005-12-09T14:40:24"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Fixed in HEAD and 8.4 branch (looking off the end of a list always finds nothing)
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"