zsh-workers
 help / color / mirror / code / Atom feed
* DEBUG trap and warn_create_global
@ 2017-11-20  4:08 Matthew Martin
  2017-11-21  1:45 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Martin @ 2017-11-20  4:08 UTC (permalink / raw)
  To: zsh-workers

    f() { setopt local_options warn_create_global; :; }; trap : DEBUG; f

in zsh -f outputs

    f: scalar parameter ZSH_DEBUG_CMD created globally in function f

I would think ZSH_DEBUG_CMD is local to the trap execution. Otherwise
DEBUG traps can "break" warn_create_global clean functions.

- Matthew Martin


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-06  2:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-20  4:08 DEBUG trap and warn_create_global Matthew Martin
2017-11-21  1:45 ` Bart Schaefer
2017-12-06  2:18   ` Matthew Martin

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).