diff options
author | dgp <dgp@noemail.net> | 2001-08-24 16:19:08 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2001-08-24 16:19:08 (GMT) |
commit | d392ebb6dda832544b647edbf0a20d3b74d2c6f9 (patch) | |
tree | 83a2c71e82588b352db0685f3f7eeaa9837568b3 /library/init.tcl | |
parent | 98231ea70a2a753a798de23a560de2029c0200c1 (diff) | |
download | tcl-d392ebb6dda832544b647edbf0a20d3b74d2c6f9.zip tcl-d392ebb6dda832544b647edbf0a20d3b74d2c6f9.tar.gz tcl-d392ebb6dda832544b647edbf0a20d3b74d2c6f9.tar.bz2 |
* Backport of several bug fixes from HEAD to core-8-3-1-branch
FossilOrigin-Name: a44fa8045154481ccf04a807289ab46f4020ff5a
Diffstat (limited to 'library/init.tcl')
-rw-r--r-- | library/init.tcl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/library/init.tcl b/library/init.tcl index 9478b98..f5c8c96 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. # -# RCS: @(#) $Id: init.tcl,v 1.39.2.2 2001/04/03 22:54:38 hobbs Exp $ +# RCS: @(#) $Id: init.tcl,v 1.39.2.3 2001/08/24 16:19:09 dgp Exp $ # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -467,9 +467,10 @@ proc auto_import {pattern} { auto_load_index foreach pattern $patternList { - foreach name [array names auto_index] { - if {[string match $pattern $name] && \ - [string equal "" [info commands $name]]} { + foreach name [array names auto_index $pattern] { + if {[string equal "" [info commands $name]] + && [string equal [namespace qualifiers $pattern] \ + [namespace qualifiers $name]]} { uplevel #0 $auto_index($name) } } |