Tcl Source Code

View Ticket
Login
Ticket UUID: fad64a857e76f98e6487ec822ac979f952ef0bed
Title: [lsearch] provides wrong errorCode with bad -stride option
Type: Bug Version: 8.7a4
Submitter: emiliano Created on: 2020-05-06 23:28:13
Subsystem: 17. Commands I-L Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Cosmetic
Status: Closed Last Modified: 2020-05-07 11:19:28
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2020-05-07 11:19:28
Description:
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"
User Comments: jan.nijtmans added on 2020-05-07 11:19:28:

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


Attachments: