about summary refs log tree commit diff
path: root/Src/cond.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-11-11 18:04:20 +0000
committerPeter Stephenson <pws@zsh.org>2015-11-11 18:04:20 +0000
commit830d54e629e8e12eb5a219a65a013876662e7b3e (patch)
treeec28abefe33e9925c36515652e4f87dba01b7db7 /Src/cond.c
parentf30b1bc7d16f6eab195f47dfd812527d69b0b315 (diff)
downloadzsh-830d54e629e8e12eb5a219a65a013876662e7b3e.tar.gz
zsh-830d54e629e8e12eb5a219a65a013876662e7b3e.tar.xz
zsh-830d54e629e8e12eb5a219a65a013876662e7b3e.zip
37092: make nested ${(P)name} properly refer to parameter on return
Diffstat (limited to 'Src/cond.c')
-rw-r--r--Src/cond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/cond.c b/Src/cond.c
index df9065660..c5ab65eea 100644
--- a/Src/cond.c
+++ b/Src/cond.c
@@ -43,7 +43,7 @@ static void cond_subst(char **strp, int glob_ok)
 	checkglobqual(*strp, strlen(*strp), 1, NULL)) {
 	LinkList args = newlinklist();
 	addlinknode(args, *strp);
-	prefork(args, 0);
+	prefork(args, 0, NULL);
 	while (!errflag && args && nonempty(args) &&
 	       has_token((char *)peekfirst(args)))
 	    zglob(args, firstnode(args), 0);