summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-25 22:03:30 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-25 22:03:30 (GMT)
commitcc0d7ee19970bbd25753a4076ed5d0a4b44ff68d (patch)
tree6614df9200f81b3cfa5e989eaa1eec601d55e817
parent6855a1fa6afb4654fbdd7614af54edae396a2474 (diff)
downloadtcl-cc0d7ee19970bbd25753a4076ed5d0a4b44ff68d.zip
tcl-cc0d7ee19970bbd25753a4076ed5d0a4b44ff68d.tar.gz
tcl-cc0d7ee19970bbd25753a4076ed5d0a4b44ff68d.tar.bz2
Clarified meaning of pattern arg to [info procs]
-rw-r--r--ChangeLog3
-rw-r--r--doc/info.n7
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 61dd902..dbc31f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2004-10-25 Donal K. Fellows <donal.k.fellows@man.ac.uk>
+ * doc/info.n (procs): Clarified that the pattern argument may have
+ namespace separators in it. [Bug 1047928]
+
* tests/cmdAH.test (cmdAH-8.45): Simplify in the hope that the
reasons for [Bug 1053908] will become clearer.
diff --git a/doc/info.n b/doc/info.n
index 869d738..bfa1036 100644
--- a/doc/info.n
+++ b/doc/info.n
@@ -7,7 +7,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: info.n,v 1.11 2004/08/31 15:19:36 dkf Exp $
+'\" RCS: @(#) $Id: info.n,v 1.12 2004/10/25 22:03:31 dkf Exp $
'\"
.so man.macros
.TH info n 8.4 Tcl "Tcl Built-In Commands"
@@ -163,6 +163,11 @@ only those procedure names in the current namespace
matching \fIpattern\fR are returned.
Matching is determined using the same rules as for
\fBstring match\fR.
+If \fIpattern\fR contains any namespace separators, they are used to
+select a namespace relative to the current namespace (or relative to
+the global namespace if \fIpattern\fR starts with \fB::\fR) to match
+within; the matching pattern is taken to be the part after the last
+namespace separator.
.TP
\fBinfo script\fR ?\fIfilename\fR?
If a Tcl script file is currently being evaluated (i.e. there is a