Open DasBrain opened 1 month ago
When there is a bind log, a few things stop working, as they do not expect logging functions to change the Tcl interpreter result.
bind log
This fixes those issues by storing the result before triggering the log binds and restoring it after the call.
Things found to be broken:
.tcl
And maybe a few more.
Found by: DasBrain Patch by: DasBrain Fixes: bind log, hopefully.
One-line summary: Fix wrong Tcl results when there is a bind log.
Additional description (if needed):
Test cases demonstrating functionality (if applicable): .tcl string cat foo .tcl bind log * +|+ {string cat} .tcl string cat foo
When there is a
bind log
, a few things stop working, as they do not expect logging functions to change the Tcl interpreter result.This fixes those issues by storing the result before triggering the log binds and restoring it after the call.
Things found to be broken:
.tcl
dcc command (empty result is shown)And maybe a few more.
Found by: DasBrain Patch by: DasBrain Fixes: bind log, hopefully.
One-line summary: Fix wrong Tcl results when there is a bind log.
Additional description (if needed):
Test cases demonstrating functionality (if applicable): .tcl string cat foo .tcl bind log * +|+ {string cat} .tcl string cat foo