zsh-workers
 help / color / mirror / code / Atom feed
* trap DEBUG should get run beforehand, not afterwards.
@ 2008-07-30  2:37 Rocky Bernstein
  2008-07-30  8:23 ` Peter Stephenson
  0 siblings, 1 reply; 6+ messages in thread
From: Rocky Bernstein @ 2008-07-30  2:37 UTC (permalink / raw)
  To: zsh-workers

Think for example about whether you'd like to know that 'rm -fr *' is
about to occur or just occurred.

ksh introduced trap DEBUG and bash, and zsh copied it. Both ksh and
bash originally ran after the statement; I guess because that is same
as other traps. However both have switched so that it is run before
the statement.

Alas, it's impossible to contemplate writing any sort of serious
debugger unless  "trap DEBUG" gets run beforehand.

Should I attempt a patch?


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

end of thread, other threads:[~2008-07-30 14:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-30  2:37 trap DEBUG should get run beforehand, not afterwards Rocky Bernstein
2008-07-30  8:23 ` Peter Stephenson
2008-07-30 13:24   ` Rocky Bernstein
2008-07-30 13:38     ` Bart Schaefer
2008-07-30 14:01       ` Rocky Bernstein
2008-07-30 13:27   ` Richard Hartmann

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