summaryrefslogtreecommitdiffstats
path: root/library/package.tcl
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2003-02-25 23:58:07 (GMT)
committerdgp <dgp@noemail.net>2003-02-25 23:58:07 (GMT)
commit13022fd3af1ae5ee859f1399f94c358bceb6b6d8 (patch)
treea73394e56c1d7f7bdb4cb605f5a675b3f829f4ff /library/package.tcl
parent5aa7b0fa1e89a60d8d4d33b679705e703e53990f (diff)
downloadtcl-13022fd3af1ae5ee859f1399f94c358bceb6b6d8.zip
tcl-13022fd3af1ae5ee859f1399f94c358bceb6b6d8.tar.gz
tcl-13022fd3af1ae5ee859f1399f94c358bceb6b6d8.tar.bz2
* doc/pkgMkIndex.n: Modified [pkg_mkIndex] to use -nocase matching
* library/package.tcl: of -load patterns, to better accomodate common user errors due to confusion between [package names] names and [info loaded] names. FossilOrigin-Name: d8815981832208d6031c9bebdf40422724fb0e49
Diffstat (limited to 'library/package.tcl')
-rw-r--r--library/package.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/package.tcl b/library/package.tcl
index d69f21e..96e2f00 100644
--- a/library/package.tcl
+++ b/library/package.tcl
@@ -3,7 +3,7 @@
# utility procs formerly in init.tcl which can be loaded on demand
# for package management.
#
-# RCS: @(#) $Id: package.tcl,v 1.22 2003/02/21 05:30:18 dgp Exp $
+# RCS: @(#) $Id: package.tcl,v 1.23 2003/02/25 23:58:09 dgp Exp $
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1998 Sun Microsystems, Inc.
@@ -176,7 +176,7 @@ proc pkg_mkIndex {args} {
}
}
foreach pkg [info loaded] {
- if {! [string match $loadPat [lindex $pkg 1]]} {
+ if {! [string match -nocase $loadPat [lindex $pkg 1]]} {
continue
}
if {$doVerbose} {