Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 71d17fb295e1f9ae1dffee515ef7cd6262ac23140434dcb14a24b0144733ac91
Ticket: a7c1c2c7e56410980eb154b681f0c5958f2f4cd1
lsearch with -all options does not return -1 where no match is found
User & Date: zhou on 2020-06-20 07:08:43
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    The document of lsearch command says: This command searches the elements of list to see if one of them matches pattern. If so, the command returns the index of the first matching element (unless the options -all or -inline are specified.) If not, the command returns -1. The option arguments indicates how the elements of the list are to be matched against pattern and must have one of the values below: 
    
    But if you specify the -all option and there is no matches found, the lsearch command returns an empty string instead of -1.
    
  5. foundin changed to: "8.6.8"
  6. is_private changed to: "0"
  7. login: "zhou"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "c76aa1c4f5b5ad6fa0c50aac05cee1be8566f7a1"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "zhou"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    lsearch with -all options does not return -1 where no match is found
    
  16. type changed to: "Bug"