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

Re: Bug with push-line-or-edit and here-documents



I wrote:

> ...
>
> -    if (!qt)
> +    if (!qt) {
> +	int ef = errflag;
> +
>  	parsestr(buf);
> +	errflag = ef;
> +    }

Err... we better keep a value != zero coming from parsestr().

Bye
 Sven

diff -ru ../z.old/Src/exec.c Src/exec.c
--- ../z.old/Src/exec.c	Mon Feb 28 12:00:51 2000
+++ Src/exec.c	Mon Feb 28 12:56:24 2000
@@ -2557,7 +2557,9 @@
 	int ef = errflag;
 
 	parsestr(buf);
-	errflag = ef;
+
+	if (!errflag)
+	    errflag = ef;
     }
     s = dupstring(buf);
     zfree(buf, bsiz);

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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