From 4736e253beca45aed88ef9a8d5225c7164208c45 Mon Sep 17 00:00:00 2001 From: Paul Ackersviller Date: Mon, 10 Dec 2007 03:16:53 +0000 Subject: Merge 24150: Exit status of null command should be exit status of last cmdsubst. --- Src/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index 76bd8638a..fc45653e9 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1963,7 +1963,7 @@ execcmd(Estate state, int input, int output, int how, int last1) lastval = 0; return; } else { - cmdoutval = 0; + cmdoutval = lastval; if (varspc) addvars(state, varspc, 0); if (errflag) -- cgit 1.4.1