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

Re: PATCH: pws-N: function line numbers



Bart Schaefer wrote:

> On Jun 24, 12:02pm, Peter Stephenson wrote:
> } Subject: PATCH: pws-N: function line numbers
> }
> } It would be sort of nice to fix this stuff in 3.0.6 too, but that means
> } adapting both Sven's and my previous fixes, which is a rather deathly task.
> 
> Yawn.  Been there, done that.
> 
> 1999-06-19 05:11  Bart Schaefer <schaefer@xxxxxxx>
> 
> 	* Doc/zsh.texi, Doc/zshbuiltins.man, Src/builtin.c, Src/exec.c,
> 	Src/init.c, Src/input.c, Src/parse.c, Src/zsh.h: Adapt Sven's and
>         PWS's patches for correct LINENO computation from 6693, 6705.
> 
> Is there something else that I missed?

There is something I missed: the %_ was wrong for else-branches.

Bye
 Sven

--- os/loop.c	Thu Jun 24 14:03:59 1999
+++ Src/loop.c	Fri Jun 25 08:55:35 1999
@@ -378,7 +378,7 @@
     noerrexit = olderrexit;
 
     if (*t) {
-	cmdpush(s ? CS_ELIFTHEN : CS_IFTHEN);
+	cmdpush(*i ? (s ? CS_ELIFTHEN : CS_IFTHEN) : CS_ELSE);
 	execlist(*t, 1, flags & CFLAG_EXEC);
 	cmdpop();
     } else

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author