|
2001-04-06
| ||
| 02:18 | • Ticket [217822ffff] auto_mkindex does not work with itclsh status still Clos... artifact: 96b888e0b7 user: dgp | |
|
2000-10-26
| ||
| 07:49 | • Closed ticket [217822ffff]. artifact: 975b3db545 user: welch | |
| 00:44 | • New ticket [217822ffff]. artifact: 0e35a67135 user: nobody | |
auto_mkindex does not work with itclsh
Closed / Duplicate217822ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:44:21
OriginalBugID: 1481 Bug
Version: 8.0.5
SubmitDate: '1999-03-11'
LastModified: '2000-01-31'
Severity: MED
Status: Closed
Submitter: welch
ChangedBy: ericm
RelatedBugIDs: 1657 1115 1549 1558 1559
OS: All
FixedDate: '2000-10-25'
FixedInVersion: 8.1
ClosedDate: '2000-01-31'
Name:
Erik Allaert
Extensions:
TclX 8.0.3, itcl 3.0.1, BLT 2.4g, Img 1.1.4, Tktable 2.4, msqltcl 1.99
ReproducibleScript:
te13 eallaert: 260 > itclsh
% auto_mkindex ../lib/libseqTcl.tcl *.tcl
invalid command name "$parser"
% set errorInfo
invalid command name "$parser"
while executing
"{$parser} eval { _%@namespace import -force ::itcl::* }"
("eval" body line 1)
invoked from within
"eval $cmd"
(procedure "auto_mkindex_parser::init" line 28)
invoked from within
"auto_mkindex_parser::init"
(procedure "auto_mkindex" line 19)
invoked from within
"auto_mkindex ../lib/libseqTcl.tcl *.tcl"
%
Patch:
*** init.tcl.orig Thu Feb 11 04:06:23 1999
--- init.tcl Wed Mar 10 14:49:41 1999
***************
*** 908,914 ****
proc auto_mkindex_parser::slavehook {cmd} {
variable initCommands
! lappend initCommands [list \$parser eval $cmd]
}
# auto_mkindex_parser::command --
--- 908,914 ----
proc auto_mkindex_parser::slavehook {cmd} {
variable initCommands
! lappend initCommands "\$parser eval [list $cmd]"
}
# auto_mkindex_parser::command --
***************
*** 959,965 ****
set exportCmd [list _%@namespace export [namespace tail $name]]
$parser eval [list _%@namespace eval $ns $exportCmd]
set alias [namespace tail $fakeName]
! $parser invokehidden proc $name {args} [list _%@eval $alias \$args]
$parser alias $alias $fakeName
} else {
$parser alias $name $fakeName
--- 959,965 ----
set exportCmd [list _%@namespace export [namespace tail $name]]
$parser eval [list _%@namespace eval $ns $exportCmd]
set alias [namespace tail $fakeName]
! $parser invokehidden proc $name {args} "_%@eval $alias \$args"
$parser alias $alias $fakeName
} else {
$parser alias $name $fakeName
PatchFiles:
library/init.tcl
This bug has apparently to do with the fact that the "list" command wants to
"neutralize" $-signs by putting braces around it. The corresponding pieces
of Tcl's 8.0.4 init.tcl code did (therefore ?) not use "list", were OK, and are put back in place by this patch.
[BRENT SAYS:] The patch is only partially right. The first fix in the patch is good. I think the second invoke hidden should be:
$parser invokehidden proc $name {args} "_%@eval {$alias} \$args"
------------
This bug was fixed in Tcl 8.1. Another bug ticket relating to it was issued and resolved, but this one was not marked as a duplicate and closed until now.
- eric
-- 01/31/2000 ericm
welch Closed ticket [217822ffff].
[History diff]2000-10-26 07:49:20
dgp Ticket [217822ffff]: 3 changes
[History diff]2001-04-06 02:18:42
Log in (anonymous is fine) to add a comment.