diff options
author | welch <welch> | 1998-07-11 13:07:06 (GMT) |
---|---|---|
committer | welch <welch> | 1998-07-11 13:07:06 (GMT) |
commit | 1128bd59e7299da531357856a2cbd37086c480eb (patch) | |
tree | 712084d586e828eea3af160b8efc11461b34abf6 /library/init.tcl | |
parent | e3142a5267cc418af5890906dd1d3e8a14b1f947 (diff) | |
download | tcl-1128bd59e7299da531357856a2cbd37086c480eb.zip tcl-1128bd59e7299da531357856a2cbd37086c480eb.tar.gz tcl-1128bd59e7299da531357856a2cbd37086c480eb.tar.bz2 |
Fixed pkg_mkIndex
Diffstat (limited to 'library/init.tcl')
-rw-r--r-- | library/init.tcl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/library/init.tcl b/library/init.tcl index b8cbfab..8a8b93f 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -3,7 +3,7 @@ # Default system startup file for Tcl-based applications. Defines # "unknown" procedure and auto-load facilities. # -# SCCS: %Z% $Id: init.tcl,v 1.4 1998/07/02 17:54:45 escoffon Exp $ +# SCCS: %Z% $Id: init.tcl,v 1.5 1998/07/11 13:07:06 welch Exp $ # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -896,7 +896,14 @@ proc pkg_mkIndex {args} { } foreach __i [array names __cmds] { # reverse engineer which namespace a command comes from + set __absolute [namespace origin $__i] + + # special case so that global names have no leading + # ::, this is required by the unknown command + + set __absolute [auto_qualify $__absolute ::] + if {[string compare $__i $__absolute] != 0} { set __cmds($__absolute) 1 unset __cmds($__i) |