summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2018-11-21 10:10:03 +0000
committerPeter Stephenson <p.stephenson@samsung.com>2018-11-21 10:10:03 +0000
commit50f8fa972c3795a115e7faff0b4c140b40eab5f0 (patch)
treee179ad02a9e1d463634e04bf35a249d253a91a98 /Src
parent8d0f7681a05c4c49a22cb67b585f54e6f2e29931 (diff)
downloadzsh-50f8fa972c3795a115e7faff0b4c140b40eab5f0.tar.gz
zsh-50f8fa972c3795a115e7faff0b4c140b40eab5f0.tar.xz
zsh-50f8fa972c3795a115e7faff0b4c140b40eab5f0.zip
43837 plus test from Daniel: Empty string in nested subst.
Skip Nularg or there is a bogus character at the start.
Diffstat (limited to 'Src')
-rw-r--r--Src/subst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c
index c706b9688..ff6750a59 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -2405,6 +2405,8 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags,
 	    aspar = 0;
 	} else if (aspar)
 	    idbeg = val;
+	if (*val == Nularg)
+	    ++val;
 	*s = sav;
 	/*
 	 * This tests for the second double quote in an expression