Tcl Source Code

View Ticket
Login
2021-12-30
14:12 New ticket [a5a99f0aef] lsearch returns different results depending on order of ... artifact: c62580bac7 user: pooryorick

Ticket UUID: a5a99f0aef0a6923c4a3ef4c744527a0ed328901
Title: lsearch returns different results depending on order of -bisect and -exact arguments
Type: Bug Created on: 2021-12-30 14:12:29
Submitter: pooryorick Assigned to: nobody
Subsystem: 17. Commands I-L Severity: Important
Priority: 5 Medium Last modified: 2021-12-30 14:12:29
Status: Open Closed by: nobody
Resolution: None Closed on:
Version:
Description:

In the following example, swapping -bisect and -exact causes lsearch to behave differently:

% lsearch -bisect -exact -stride 2 -index 0 {one two} three
-1
% lsearch -exact -bisect -stride 2 -index 0 {one two} three
0