Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug with push-line-or-edit and here-documents
- X-seq: zsh-workers 9903
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Bug with push-line-or-edit and here-documents
- Date: Mon, 28 Feb 2000 12:57:44 +0100 (MET)
- In-reply-to: Sven Wischnowsky's message of Mon, 28 Feb 2000 12:00:41 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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