about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/exec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index fcf00f28e..4c831fe26 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -2553,8 +2553,12 @@ gethere(char *str, int typ)
     if (t > buf && t[-1] == '\n')
 	t--;
     *t = '\0';
-    if (!qt)
+    if (!qt) {
+	int ef = errflag;
+
 	parsestr(buf);
+	errflag = ef;
+    }
     s = dupstring(buf);
     zfree(buf, bsiz);
     return s;