From 6df44faf120b4abf8bf259a3d50deb1637335e54 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 4 Apr 2005 09:38:20 +0000 Subject: 21082: Dan Nelson: fix zsh -c exit status on parse error --- Src/exec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index fb81ba1c2..24355d275 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -162,6 +162,8 @@ parse_string(char *s) lineno = 1; p = parse_list(); lineno = oldlineno; + if (tok == LEXERR && !lastval) + lastval = 1; strinend(); inpop(); lexrestore(); -- cgit 1.4.1