Overview
| Artifact ID: | 7f2326d46ff8f63519f01b7462925615a02fd4fd |
|---|---|
| Ticket: | 218841ffffffffffffffffffffffffffffffffff
pkg_mkIndex generates an incorrect pkgIndex.tcl file |
| User & Date: | nobody on 2000-10-26 01:06:26 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 2360 Bug Version: 8.1.1 SubmitDate: '1999-07-16' LastModified: '2000-01-28' Severity: SER Status: Released Submitter: techsupp ChangedBy: ericm OS: All Machine: X86 FixedDate: '2000-01-28' FixedInVersion: 8.3 ClosedDate: '2000-10-25' Name: Gerald Banon ReproducibleScript: In the current directory I have a file named prog.tcl containing two procedures whose names are defined within braces like below: package provide prog 1.1 proc {a b} {} { } proc {c d} {} { } When running the command: pkg_mkIndex . prog.tcl the resulting pkgIndex.tcl file contains the line: package ifneeded prog 1.1 [list tclPkgSetup $dir prog 1.1 {{definition.tcl source {{{a b}} {{c d}}}}}] In this line there are extra braces arround {a b} and {c d}. Latter on, with these extra braces, the two procedures cannot be loaded ... ObservedBehavior: see above DesiredBehavior: in Tcl 8.0p2 such procedure names cames without extra braces in the pkgIndex.tcl file and latter on the procedures were properly loaded. Verified. This is due to the auto_qualify proc always wanting to return everything as [list]'ed. -- 11/30/1999 hobbs As Jeff noted, this was due to auto_qualify always returning a list. I modified pkg_mkIndex to just grab the first element of the list, in essence un-listifying the result. This should be done anyway, as auto_qualify can return a multi-element list, so to protect against that we want only the first element too. This fix is in 8.3. - eric -- 01/28/2000 ericm - foundin changed to: "final: 8.1.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "56. LibTomMath"
- title changed to:
pkg_mkIndex generates an incorrect pkgIndex.tcl file
- type changed to: "Bug"