Artifacts Associated With Ticket 465674ffffffffff
Ticket change [5532f611db] (rid 94089) by dkf on 2001-09-27 14:37:51:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The index 'end-1' (or with any other offset from the end) is processed by [lsort] exactly as if it was the index 'end' without an offset. Thus % set l {{d b c} {a c b}} {d b c} {a c b} % lsort $l ;# OK {a c b} {d b c} % lsort -index end $l ;# OK {a c b} {d b c} % lsort -index end-1 $l ;# WRONG WAY ROUND! {a c b} {d b c} The fault is because SortCompare in tclCmdIL.c always sets 'index' to 'listLen - 1' when 'infoPtr->index' is less than -1 instead of using the value that is actually there (i.e. 'listLen + 1 + infoPtr->index') - foundin initialized to: "obsolete: 8.4a4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dkf"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "[lsort -index end-1] problem"
- type initialized to: "Bug"
Ticket change [1ebaa501d6] (rid 91027) by dkf on 2001-09-28 22:32:36:
- closedate changed to: "2001-09-28T15:32:36"
- closer changed to: "dkf"
- resolution changed to: "Fixed"
- status changed to: "Closed"