zsh-workers
 help / color / mirror / code / Atom feed
* Redefining TRAPDEBUG causes loop?
@ 2021-09-05  3:07 Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2021-09-05  3:07 UTC (permalink / raw)
  To: Zsh hackers list

I haven't worked out a simple test case yet, but several times while
playing with Zach Riggle's question about ZSH_DEBUG_CMD, I managed to
put the shell into an infinite loop by redefining TRAPDEBUG() { ... }
at the command line without first doing unfunction TRAPDEBUG.

This probably requires making a reference to $ZSH_DEBUG_CMD in the
function body (and therefore requires DEBUG_BEFORE_CMD) but I'm not
certain.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-05  3:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-05  3:07 Redefining TRAPDEBUG causes loop? Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).