From 08e3c7d596923f5022fda6ee58d6e7ac15e65edb Mon Sep 17 00:00:00 2001 From: stefanf Date: Sun, 31 May 2009 12:36:14 +0000 Subject: Fix the eval command in combination with set -e. Before this change the shell would always terminate if eval returned with a non-zero exit status regardless if the status was actually tested. Unfortunately a new file-scope variable is needed, the alternative would only be to add a new parameter to all built-ins. PR: 134881 --- bin/sh/eval.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/sh/eval.h') diff --git a/bin/sh/eval.h b/bin/sh/eval.h index 01c914a..11f7470 100644 --- a/bin/sh/eval.h +++ b/bin/sh/eval.h @@ -46,7 +46,7 @@ struct backcmd { /* result of evalbackcmd */ }; int evalcmd(int, char **); -void evalstring(char *); +void evalstring(char *, int); union node; /* BLETCH for ansi C */ void evaltree(union node *, int); void evalbackcmd(union node *, struct backcmd *); -- cgit v1.1