Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-06
02:16 • Ticket [218234ffff] if-catch combinationin pkgIndex.tcl status still Closed ... artifact: 21c3cf113e user: dgp
2000-10-26
08:17 • Closed ticket [218234ffff]. artifact: b58ca2b2d5 user: welch
00:54 • New ticket [218234ffff]. artifact: 946725c6a6 user: nobody

if-catch combinationin pkgIndex.tcl

Closed / Fixed218234ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:54:53
OriginalBugID: 2688 Bug
Version: 8.2
SubmitDate: '1999-09-02'
LastModified: '2000-04-14'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Windows 98
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '2000-04-14'


Name:
Alexey Kakunin

Extensions:
BWidget 1.2.1

ReproducibleScript:
pkgIndex.tcl:
    package ifneeded VSWidget 0.1 " if {[catch {package require BWidget}] == 1} { set useBWidget 0}; package provide VSWidget 0.1"

    test.tcl
    package required VSWidget

ObservedBehavior:
wish crashes



This is an incorrectly created pkgIndex file that will cause
itself to be called recursively.  The package require inside
the pkgIndex should be moved elsewhere (like to that packages
init proc). 
-- 04/14/2000 hobbs
welch Closed ticket [218234ffff]. [History diff]2000-10-26 08:17:54
dgp Ticket [218234ffff]: 3 changes [History diff]2001-04-06 02:16:19
Log in (anonymous is fine) to add a comment.