about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-02-27 15:51:26 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-02-27 15:51:26 +0000
commit0076d686645eb58256f2051a3f82136b9d70ea42 (patch)
treed4392ed7dc4f47d3f800fb7398e6c9f57f084efa /Src
parent4ff6e11df26f4504c30fd5f2e981296e83c74dd9 (diff)
downloadzsh-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.c3
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) {