summaryrefslogtreecommitdiffstats
path: root/library/init.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-04 15:16:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-04 15:16:31 (GMT)
commit2e108cd831c0768e78523e91979084cad3655df6 (patch)
tree8ca691e8c894be68793df51fc0d2d0ce35e98b2a /library/init.tcl
parent27fb8875b78c3eb6a4c6bf6068986399a2a299db (diff)
downloadtcl-2e108cd831c0768e78523e91979084cad3655df6.zip
tcl-2e108cd831c0768e78523e91979084cad3655df6.tar.gz
tcl-2e108cd831c0768e78523e91979084cad3655df6.tar.bz2
Fix safe.tcl test-cases: "source -nopkg" is not necessary here: "source" is an alias for "::safe::AliasSource", which doesn't use "source"
Diffstat (limited to 'library/init.tcl')
-rw-r--r--library/init.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 65a19aa..e3d4ef0 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -486,7 +486,7 @@ proc auto_load_index {} {
set dir [lindex $auto_path $i]
set f ""
if {$issafe} {
- catch {source -nopkg [file join $dir tclIndex]}
+ catch {source [file join $dir tclIndex]}
} elseif {[catch {set f [open [file join $dir tclIndex]]}]} {
continue
} else {