diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2010-09-01 20:35:31 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2010-09-01 20:35:31 (GMT) |
commit | 7e420b11eca772f8dd74b8f5b236872251dc8002 (patch) | |
tree | 6e87bc05f40a7a62222bac4871c8f6ec5cc1d675 /generic/tclVar.c | |
parent | b32e076f585fc457091b654763925cc6783dafcd (diff) | |
download | tcl-7e420b11eca772f8dd74b8f5b236872251dc8002.zip tcl-7e420b11eca772f8dd74b8f5b236872251dc8002.tar.gz tcl-7e420b11eca772f8dd74b8f5b236872251dc8002.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.
FossilOrigin-Name: 405a405dc7b5e6d2cf699bce59de6867a313fa6f
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 c35685b..ee4e84f 100644 --- a/generic/tclVar.c +++ b/generic/tclVar.c @@ -16,7 +16,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.202 2010/08/22 18:53:25 nijtmans Exp $ + * RCS: @(#) $Id: tclVar.c,v 1.203 2010/09/01 20:35:33 andreas_kupries Exp $ */ #include "tclInt.h" @@ -1867,8 +1867,10 @@ TclPtrSetVar( /* * 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->flags & VAR_TRACED_READ) |