about summary refs log tree commit diff
path: root/Src/subst.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-03-11 21:05:59 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-03-11 21:05:59 +0000
commit4263d2b8215024e4f93620b791b83c2c7f878f94 (patch)
tree679e9753310047ca4cf498989d8bdb82e8116295 /Src/subst.c
parent336836987fda996158835551942efee01ac8fac2 (diff)
downloadzsh-4263d2b8215024e4f93620b791b83c2c7f878f94.tar.gz
zsh-4263d2b8215024e4f93620b791b83c2c7f878f94.tar.xz
zsh-4263d2b8215024e4f93620b791b83c2c7f878f94.zip
28889: ${##} should return the length of $#
Diffstat (limited to 'Src/subst.c')
-rw-r--r--Src/subst.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c
index 9b3699a47..dfe96c890 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -2039,6 +2039,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
 	} else if ((c == '#' || c == Pound) &&
 		   (itype_end(s+1, IIDENT, 0) != s + 1
 		    || (cc = s[1]) == '*' || cc == Star || cc == '@'
+		    || cc == '#' || cc == Pound
 		    || cc == '-' || (cc == ':' && s[2] == '-')
 		    || (isstring(cc) && (s[2] == Inbrace || s[2] == Inpar)))) {
 	    getlen = 1 + whichlen, s++;