Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fea7fbff9f80aa7d23e9f3238c060e22d0d56a7a2f01fb8ddbb3be02b88a1502
Ticket: edebb6a4ff741f7e7ddcaa17355640a586b52502
lsearch -index requires nested items to exist
User & Date: pooryorick on 2024-11-10 22:16:34
Changes

  1. icomment:
    It's not the same case as <code>lindex {} 0</code> being the empty string.
    Consider this command:
    
    <code><verbatim>
    lsearch -index 0  {one two three {}} {}
    </verbatim></code>
    
    The result should be -1, not 3.  The absence of an item at index zero should
    not compare equal to the empty string.
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"