Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .tcl when there is a bind log. #1686

Closed
wants to merge 1 commit into from

Conversation

DasBrain
Copy link
Contributor

@DasBrain DasBrain commented Sep 15, 2024

Found by: DasBrain
Patch by: DasBrain
Fixes:

One-line summary:
Fix .tcl when there is a bind log.

Additional description (if needed):
If there is a bind log active, then debug3 will execute code in the interpreter, changing the result.
So: Store the result before calling debug3.

Or put differently: Don't use the Tcl interpreter between evaluating stuff and getting the result.

Test cases demonstrating functionality (if applicable):
In dcc:

.tcl string cat foo
.tcl bind log * +|+ {string cat}
.tcl string cat foo

The second .tcl will not output foo

@DasBrain DasBrain changed the title Fix .tcl when there is a bind pub. Fix .tcl when there is a bind log. Sep 15, 2024
@DasBrain DasBrain closed this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant