diff options
author | andreas_kupries <akupries@shaw.ca> | 2010-09-01 20:36:19 (GMT) |
---|---|---|
committer | andreas_kupries <akupries@shaw.ca> | 2010-09-01 20:36:19 (GMT) |
commit | 8ac914140fefc051814651ad831c28796081762e (patch) | |
tree | a95b86a73cfd6d6a6a817fbedbae61190cdc635e /generic/tclVar.c | |
parent | 56d46328e2d43b83bfc1ba4686263df989d47958 (diff) | |
download | tcl-8ac914140fefc051814651ad831c28796081762e.zip tcl-8ac914140fefc051814651ad831c28796081762e.tar.gz tcl-8ac914140fefc051814651ad831c28796081762e.tar.bz2 |
* generic/tclExecute.c: [Bug 3057639]. Applied patch by Jeff to
* generic/tclVar.c: make the behaviour of lappend in bytecompiled
* tests/append.test: mode consistent with direct-eval and 'append'
* tests/appendComp.test: generally. Added tests (append*-9.*)
showing the difference.
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r-- | generic/tclVar.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c index 78505ff..3063158 100644 --- a/generic/tclVar.c +++ b/generic/tclVar.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: tclVar.c,v 1.69.2.15 2009/08/25 20:59:11 andreas_kupries Exp $ + * RCS: @(#) $Id: tclVar.c,v 1.69.2.16 2010/09/01 20:36:20 andreas_kupries Exp $ */ #include "tclInt.h" @@ -1602,8 +1602,10 @@ TclPtrSetVar(interp, varPtr, arrayPtr, part1, part2, newValuePtr, flags) /* * Invoke any read traces that have been set for the variable if it - * is requested; this is only done in the core by the INST_LAPPEND_* - * instructions. + * requested. This was done for INST_LAPPEND_* but that was inconsistent + * with the non-bc instruction, and would cause failures trying to + * lappend to any non-existing ::env var, which is inconsistent with + * documented behavior. [Bug #3057639]. */ if ((flags & TCL_TRACE_READS) && ((varPtr->tracePtr != NULL) |