Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 880ccf89d3c9c519d728280ce8b2bf330b4ba535
Ticket: 1374778fffffffffffffffffffffffffffffffff
lsearch -start inconsistent return
User & Date: nobody on 2005-12-06 20:33:02
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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
    
  4. foundin changed to: "obsolete: 8.4.12"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "17. Commands I-L"
  10. title changed to: "lsearch -start inconsistent return"
  11. type changed to: "Bug"