diff options
author | welch <welch@noemail.net> | 1998-07-11 13:07:06 (GMT) |
---|---|---|
committer | welch <welch@noemail.net> | 1998-07-11 13:07:06 (GMT) |
commit | d18fafeab622e8f7ae2b628d1969686beb0a5337 (patch) | |
tree | 712084d586e828eea3af160b8efc11461b34abf6 /library | |
parent | 88a82031226d4afe8705206cd08d95976d014fd9 (diff) | |
download | tcl-d18fafeab622e8f7ae2b628d1969686beb0a5337.zip tcl-d18fafeab622e8f7ae2b628d1969686beb0a5337.tar.gz tcl-d18fafeab622e8f7ae2b628d1969686beb0a5337.tar.bz2 |
Fixed pkg_mkIndex
FossilOrigin-Name: 36c6efdc51e08428c810af3641c7b4afe4e661f9
Diffstat (limited to 'library')
-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) |