diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2010-09-01 19:42:27 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2010-09-01 19:42:27 (GMT) |
commit | b59797f46afc703e7d8621fcec9e156018e764d3 (patch) | |
tree | 30e30115955a0d384b8b161ea77c76fc062247ee /generic/tclVar.c | |
parent | c881a8d782de8916d204c3c792740805714982e0 (diff) | |
download | tcl-b59797f46afc703e7d8621fcec9e156018e764d3.zip tcl-b59797f46afc703e7d8621fcec9e156018e764d3.tar.gz tcl-b59797f46afc703e7d8621fcec9e156018e764d3.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: e6f97d1e4acd29b8862cfb8fd02f1e283aa5f487
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 c23681f..edce98d 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.160.2.10 2010/07/31 18:10:11 msofer Exp $ + * RCS: @(#) $Id: tclVar.c,v 1.160.2.11 2010/09/01 19:42:40 andreas_kupries Exp $ */ #include "tclInt.h" @@ -1815,8 +1815,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) |