diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-02-27 15:51:26 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-02-27 15:51:26 +0000 |
commit | 0076d686645eb58256f2051a3f82136b9d70ea42 (patch) | |
tree | d4392ed7dc4f47d3f800fb7398e6c9f57f084efa /Src | |
parent | 4ff6e11df26f4504c30fd5f2e981296e83c74dd9 (diff) | |
download | zsh-0076d686645eb58256f2051a3f82136b9d70ea42.tar.gz zsh-0076d686645eb58256f2051a3f82136b9d70ea42.tar.xz zsh-0076d686645eb58256f2051a3f82136b9d70ea42.zip |
24611: fix ${+array[...]} for empty range
Diffstat (limited to 'Src')
-rw-r--r-- | Src/subst.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/subst.c b/Src/subst.c index 22b4cfe08..9df448fc9 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -1915,7 +1915,8 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) hkeys|hvals| (arrasg ? SCANPM_ASSIGNING : 0)| (qt ? SCANPM_DQUOTED : 0))) || - (v->pm && (v->pm->node.flags & PM_UNSET))) + (v->pm && (v->pm->node.flags & PM_UNSET)) || + (v->flags & VALFLAG_EMPTY)) vunset = 1; if (wantt) { |