Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-09-12
23:20 • Closed ticket [786674ffff]: Endless loop in matrix search -nocase option plu... artifact: 1b3f6655ac user: dkf
2003-08-11
21:06 • Add attachment matrix.tcl to ticket [786674ffff] artifact: a490681c64 user: nobody
21:06 • Ticket [786674ffff] Endless loop in matrix search -nocase option status stil... artifact: 23f1d833e9 user: nobody
14:06 • New ticket [786674ffff]. artifact: 13730bf640 user: nobody

Endless loop in matrix search -nocase option

Closed / Invalid786674ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-08-11 14:06:17
The matrix search command has a bug in the detection 
of "-nocase" option.
Due to the lack of a line of code, this otpion let the 
interpreter enter into a endless loop in the serach code 
of the matrix.tcl, in struct package. See comments in 
the attached matrix.tcl file to catch the problem, 
proc ::struct::matrix::_search {name args} {
    set mode   exact
    set nocase 0
    while {1} {
......................
...................

In this way, typing <matrixid> search -nocase 
anyoption will hang hup the Tcl console.

Adding the marked line solve fixes the mentioned bug.

Regards
[email protected]
nobodyplain2003-08-11 21:06:17
File Added - 58385: matrix.tcl
dkfplain2003-09-12 23:20:27
Logged In: YES 
user_id=79902

Please report against the tcllib project
Log in (anonymous is fine) to add a comment.

Attachments: