diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2002-06-11 13:22:35 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2002-06-11 13:22:35 (GMT) |
commit | 33dbda15badb308ceba71336a5fc9b2ee711250f (patch) | |
tree | f48d6f4358e3a6d0aae4ee6cfc304b3e7d159c67 /generic/tclCmdIL.c | |
parent | 0eff1d6bf32b22f58751446875eb73b29f14d832 (diff) | |
download | tcl-33dbda15badb308ceba71336a5fc9b2ee711250f.zip tcl-33dbda15badb308ceba71336a5fc9b2ee711250f.tar.gz tcl-33dbda15badb308ceba71336a5fc9b2ee711250f.tar.bz2 |
Fix for [info locals] bug #567386; added compile functions for
[global], [upvar] and [variable].
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r-- | generic/tclCmdIL.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c index 3e1f0da..36b1ef5 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.43 2002/04/18 14:12:07 dkf Exp $ + * RCS: @(#) $Id: tclCmdIL.c,v 1.44 2002/06/11 13:22:36 msofer Exp $ */ #include "tclInt.h" @@ -1387,7 +1387,8 @@ AppendLocals(interp, listPtr, pattern, includeLinks) * Skip nameless (temporary) variables and undefined variables */ - if (!TclIsVarTemporary(localPtr) && !TclIsVarUndefined(varPtr)) { + if (!TclIsVarTemporary(localPtr) && !TclIsVarUndefined(varPtr) + && (includeLinks || !TclIsVarLink(varPtr))) { varName = varPtr->name; if ((pattern == NULL) || Tcl_StringMatch(varName, pattern)) { Tcl_ListObjAppendElement(interp, listPtr, |