Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2020-05-07
11:19 • Closed ticket [fad64a857e]: lsearch provides wrong errorCode with bad -stride ... artifact: acf775da29 user: jan.nijtmans
11:17
Fix [fad64a857e76f98e]: "lsearch" provides wrong errorCode with bad -stride option check-in: a368336356 user: jan.nijtmans tags: core-8-branch
2020-05-06
23:29 • Add attachment lsearch.diff to ticket [fad64a857e] artifact: e7aefd6505 user: emiliano
23:28 • New ticket [fad64a857e] lsearch provides wrong errorCode with bad -stride opti... artifact: 0255545967 user: emiliano

[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.