about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-12-10 03:16:53 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-12-10 03:16:53 +0000
commit4736e253beca45aed88ef9a8d5225c7164208c45 (patch)
tree3c1d053a7b09cd5ccb99867c00ff04f73078517d /Src
parent3ac2becb4fd14b1a63e6786492c823e0f4ccce35 (diff)
downloadzsh-4736e253beca45aed88ef9a8d5225c7164208c45.tar.gz
zsh-4736e253beca45aed88ef9a8d5225c7164208c45.tar.xz
zsh-4736e253beca45aed88ef9a8d5225c7164208c45.zip
Merge 24150: Exit status of null command should be exit status of last cmdsubst.
Diffstat (limited to 'Src')
-rw-r--r--Src/exec.c2
1 files changed, 1 insertions, 1 deletions
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)