Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: source file info from PS4



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