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-21 11:09:50 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-03-21 11:09:50 +0000
commitee52e3c34967e894ce0adf924da12f7962852ce2 (patch)
tree24b3b08d4a5e2406d5b64f3071d73984a5a5dd01 /Src/subst.c
parent2895154f894a285e12b039895438e0bb6b7800f3 (diff)
downloadzsh-ee52e3c34967e894ce0adf924da12f7962852ce2.tar.gz
zsh-ee52e3c34967e894ce0adf924da12f7962852ce2.tar.xz
zsh-ee52e3c34967e894ce0adf924da12f7962852ce2.zip
28936: ${#$} and ${#?} also didn't work
Diffstat (limited to 'Src/subst.c')
-rw-r--r--Src/subst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c
index dfe96c890..7838d67d9 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -2039,6 +2039,8 @@ 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 == Quest
+		    || cc == '$' || cc == String || cc == Qstring
 		    || cc == '#' || cc == Pound
 		    || cc == '-' || (cc == ':' && s[2] == '-')
 		    || (isstring(cc) && (s[2] == Inbrace || s[2] == Inpar)))) {