summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorstanton <stanton@noemail.net>1998-11-02 23:03:34 (GMT)
committerstanton <stanton@noemail.net>1998-11-02 23:03:34 (GMT)
commitf46c1548cba0584619183f691acb74d150e5a416 (patch)
tree949563c3dadcc6783fb7667f8c8ccf057f307a87 /library
parent21f8482149d8fa0d8e6b0a74a61c6952075d76ca (diff)
downloadtcl-f46c1548cba0584619183f691acb74d150e5a416.zip
tcl-f46c1548cba0584619183f691acb74d150e5a416.tar.gz
tcl-f46c1548cba0584619183f691acb74d150e5a416.tar.bz2
fixed bug in pkg_mkIndex that is hit when TCL_LIBRARY is a relative
path (e.g. in the test suite) FossilOrigin-Name: 7a0a2a8595299a4a106283cb72df61dacd83f4ea
Diffstat (limited to 'library')
-rw-r--r--library/init.tcl8
1 files changed, 7 insertions, 1 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 1f07c01..ba06988 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.19 1998/11/02 22:40:09 welch Exp $
+# RCS: @(#) $Id: init.tcl,v 1.20 1998/11/02 23:03:34 stanton Exp $
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -1187,6 +1187,11 @@ proc pkg_mkIndex {args} {
continue
}
+ # Changed back to the original directory before initializing the
+ # slave in case TCL_LIBRARY is a relative path (e.g. in the test
+ # suite).
+
+ cd $oldDir
set c [interp create]
# Load into the child all packages currently loaded in the parent
@@ -1198,6 +1203,7 @@ proc pkg_mkIndex {args} {
}
load [lindex $pkg 0] [lindex $pkg 1] $c
}
+ cd $dir
$c eval {
# Stub out the package command so packages can