Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: source file info from PS4
- X-seq: zsh-workers 25689
- From: Peter Stephenson <pws@xxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: source file info from PS4
- Date: Thu, 18 Sep 2008 16:45:01 +0100
- In-reply-to: <6cd6de210809180839v3a8b7dcr10a9591e505b9d2a@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <6005.1221576641@xxxxxxx> <6cd6de210809170939p968d36bufda419592a10cb45@xxxxxxxxxxxxxx> <20080918131320.2d7f88f4@news01> <6cd6de210809180805w6a60f2eft222e436176659fe4@xxxxxxxxxxxxxx> <6cd6de210809180822y15f5c97bn44844f4ef76b22a7@xxxxxxxxxxxxxx> <200809181525.m8IFPWSg018460@xxxxxxxxxxxxxx> <6cd6de210809180839v3a8b7dcr10a9591e505b9d2a@xxxxxxxxxxxxxx>
On Thu, 18 Sep 2008 11:39:31 -0400
"Rocky Bernstein" <rocky.bernstein@xxxxxxxxx> wrote:
> How does one use TRAPNAL for the "DEBUG" signal?
It's the same as for any signal: defining
TRAPDEBUG() {
...
}
is basically the same as defining
trap '...' DEBUG
apart from obvious quoting issues, and apart from the fact that TRAPDEBUG
gets its own full function environment rather than an eval-style
environment. You can have one or other at any one time, not both.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author