summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-31 16:28:20 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-31 16:28:20 (GMT)
commit2282409ca3414a57fa47500d32ce4dc879f4425a (patch)
tree7d966e5c19dd93ebd6407cbefb1e2ec7d9e04e34 /generic/tclCmdIL.c
parent3e587a8d4e809cd0c3d885c54560d5c0c7b0c232 (diff)
downloadtcl-2282409ca3414a57fa47500d32ce4dc879f4425a.zip
tcl-2282409ca3414a57fa47500d32ce4dc879f4425a.tar.gz
tcl-2282409ca3414a57fa47500d32ce4dc879f4425a.tar.bz2
Make [info globals ::foo] work. [Bug 1057461]
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r--generic/tclCmdIL.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index 5c48f09..9d5c829 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCmdIL.c,v 1.67 2004/10/25 01:06:49 msofer Exp $
+ * RCS: @(#) $Id: tclCmdIL.c,v 1.68 2004/10/31 16:28:21 dkf Exp $
*/
#include "tclInt.h"
@@ -1092,6 +1092,14 @@ InfoGlobalsCmd(dummy, interp, objc, objv)
pattern = NULL;
} else if (objc == 3) {
pattern = TclGetString(objv[2]);
+ /*
+ * Strip leading global-namespace qualifiers. [Bug 1057461]
+ */
+ if (pattern[0] == ':' && pattern[1] == ':') {
+ while (*pattern == ':') {
+ pattern++;
+ }
+ }
} else {
Tcl_WrongNumArgs(interp, 2, objv, "?pattern?");
return TCL_ERROR;