diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2018-11-21 10:10:03 +0000 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2018-11-21 10:10:03 +0000 |
commit | 50f8fa972c3795a115e7faff0b4c140b40eab5f0 (patch) | |
tree | e179ad02a9e1d463634e04bf35a249d253a91a98 /Src/subst.c | |
parent | 8d0f7681a05c4c49a22cb67b585f54e6f2e29931 (diff) | |
download | zsh-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/subst.c')
-rw-r--r-- | Src/subst.c | 2 |
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 |