Skip to content
Tcl Source Code History Of Ticket 465674ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 465674ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 465674ffffffffffffffffffffffffffffffffff

  1. Ticket change [5532f611db] (rid 94089) by dkf on 2001-09-27 14:37:51:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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')
      
    4. foundin initialized to: "obsolete: 8.4a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dkf"
    9. subsystem initialized to: "17. Commands I-L"
    10. title initialized to: "[lsort -index end-1] problem"
    11. type initialized to: "Bug"
  2. Ticket change [1ebaa501d6] (rid 91027) by dkf on 2001-09-28 22:32:36:

    1. closedate changed to: "2001-09-28T15:32:36"
    2. closer changed to: "dkf"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"