Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Debugging of dynamocally defined functions
- X-seq: zsh-workers 15339
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>, zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: Debugging of dynamocally defined functions
- Date: Mon, 9 Jul 2001 18:24:05 +0000
- In-reply-to: <Tc0a88d0154a564dfbd@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <Tc0a88d0154a564dfbd@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Jul 9, 6:32pm, Peter Stephenson wrote:
} Subject: Re: Debugging of dynamocally defined functions
}
} The following is how perl does it, marking an `eval' as a separate
} environment.
I was fooling with almost exactly the same thing, though I'd been trying
to figure out a nice way to embed the line number of the eval inside the
`(eval)' string; e.g. for an eval on line 30 of the calling function you
would see something like
(30:eval):1: echo foo
(30:eval):2: echo bar
etc. However, as the placment of %i and the use of colons or whatnot is
completely dependent on the PS4 setting, I couldn't decide how to do it
such that it wouldn't garble somebody's pretty prompt.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author