summaryrefslogtreecommitdiffstats
path: root/library/init.tcl
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2001-05-03 22:38:20 (GMT)
committerdgp <dgp@users.sourceforge.net>2001-05-03 22:38:20 (GMT)
commit30b6ae94051b57f5a17ab9ca7a7c3ffd6615680e (patch)
tree3556e64731aaee88def2382ca03907296de5e342 /library/init.tcl
parentbe1d3ffdb010f8ac70bfb807fca3631897628951 (diff)
downloadtcl-30b6ae94051b57f5a17ab9ca7a7c3ffd6615680e.zip
tcl-30b6ae94051b57f5a17ab9ca7a7c3ffd6615680e.tar.gz
tcl-30b6ae94051b57f5a17ab9ca7a7c3ffd6615680e.tar.bz2
Fix for Bug 420186
Diffstat (limited to 'library/init.tcl')
-rw-r--r--library/init.tcl9
1 files changed, 5 insertions, 4 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 6dcf926..c739c29 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.46 2001/04/07 02:10:17 msofer Exp $
+# RCS: @(#) $Id: init.tcl,v 1.47 2001/05/03 22:38:20 dgp Exp $
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -501,9 +501,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)
}
}