Artifacts Associated With Ticket 309cfea3a2
Ticket change [5c72ae30c9] (rid 219038) by ambaker1 on 2023-10-03 15:46:41:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
The "append" command does not trigger variable read traces. ``` # Bug with read trace with Tcl append command. proc ReadTrace {name1 name2 op} { upvar 1 $name1 var set var foo } trace add variable x read ReadTrace # lappend triggers the read-trace, modifying x before writing to it. set x hello puts [lappend x bar]; # foo bar # lset triggers it as well. set x hello puts [lset x end+1 bar]; # foo bar # append, on the other hand, does not trigger the read trace. set x hello puts [append x { bar}]; # hello bar puts $x; # foo ``` - foundin initialized to: "8.6.10"
- is_private initialized to: "0"
- login: "ambaker1"
- priority initialized to: "5 Medium"
- private_contact initialized to: "7a509cad0db427d3ca1119e0562512ea2f5279d6"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "ambaker1"
- subsystem initialized to: "07. Variables"
- title initialized to: "Append does not trigger variable read traces"
- type initialized to: "Bug"
Ticket change [ab2890c368] (rid 253840) by apnadkarni on 2026-05-24 00:56:42:
- icomment:
I'm not sure I see the problem. I get the following (8.6.17) running the above script. ``` foo bar foo bar hello bar foo ``` Looks ok to me.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment: