Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[lsearch] provides wrong errorCode with bad -stride option

Closed / Fixedfad64a857e76f98e6487ec822ac979f952ef0bedCreated 7 years agoUpdated 7 years ago
Descriptionplain2020-05-06 23:28:13
Code speaks for itself:

$ tclsh8.7 
% info pa
8.7a4
% lsearch -stride 0 foo abc
stride length must be at least 1
% set errorCode
TCL OPERATION LSORT BADSTRIDE

errorCode should be "TCL OPERATION LSEARCH BADSTRIDE"
jan.nijtmanswiki2020-05-07 11:19:28

Fixed now in core-8-branch and trunk. Thanks!

Log in (anonymous is fine) to add a comment.