From 82c9c7a42351c5b674153149c761eaa0103cd89e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 4 Apr 2005 09:35:36 +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 1e5a2d0fd..d19c55ad4 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