From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12582 invoked from network); 9 Jul 2001 18:26:14 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Jul 2001 18:26:14 -0000 Received: (qmail 25600 invoked by alias); 9 Jul 2001 18:26:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15339 Received: (qmail 25572 invoked from network); 9 Jul 2001 18:26:06 -0000 From: "Bart Schaefer" Message-Id: <1010709182405.ZM21152@candle.brasslantern.com> Date: Mon, 9 Jul 2001 18:24:05 +0000 In-Reply-To: Comments: In reply to Peter Stephenson "Re: Debugging of dynamocally defined functions" (Jul 9, 6:32pm) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: Debugging of dynamocally defined functions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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