Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
trap DEBUG should get run beforehand, not afterwards.
- X-seq: zsh-workers 25349
- From: "Rocky Bernstein" <rocky.bernstein@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: trap DEBUG should get run beforehand, not afterwards.
- Date: Tue, 29 Jul 2008 22:37:32 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=Gybhdz6yIC9GVeliE+Es9jVhzeQrJeoMDBMJ2YRnglk=; b=e96Zfvo4wINefdjIzJbk4OTN6wYQ+xVFz3bNg/jqdtRQ1NBpIc79gg12w5p5slwLxf 2F8pD+MTzDTEiUiBPtCtg05mPXMQsZ4/XNBP9tCfpjIE3NmYzPgr5qdjrs58ecwnkl0m bIV2uDl2dfFfkBED1S30lEc8eUUsCfkeiObgw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=NbrmM48Qxi5tEMSVgBdFT3h05BAlbo+TMGClGPAcorlxiCGeKgslGIxv6325idk49N foUgqCFGF1rO1Fi25W3RlAKCmI6Ps4m7ne7CTezaUIlihSehWizFSGnj5BJaPyaRa+KJ CcOPZfQ7IEFWFqDLy3dj0PH01Qu1LTt6TAMHs=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author