lsearch returns different results depending on order of -bisect and -exact arguments
Opena5a99f0aef0a6923c4a3ef4c744527a0ed328901Created 5 years agoUpdated 5 years ago
Descriptionwiki2021-12-30 14:12:29
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
Log in (anonymous is fine) to add a comment.