diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2000-05-08 08:58:37 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2000-05-08 08:58:37 +0000 |
commit | 38bb84d97577fdfc359ba0261daea730a0cfb405 (patch) | |
tree | 15222079b6024fea1a2d7636ca023bb2672196e2 /Src/subst.c | |
parent | bedd4cf2c57a89bec8bd98e6ed65082164b69d93 (diff) | |
download | zsh-38bb84d97577fdfc359ba0261daea730a0cfb405.tar.gz zsh-38bb84d97577fdfc359ba0261daea730a0cfb405.tar.xz zsh-38bb84d97577fdfc359ba0261daea730a0cfb405.zip |
11194, 11200, 11214
Diffstat (limited to 'Src/subst.c')
-rw-r--r-- | Src/subst.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c index 1f992dd54..1dc952083 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -1466,6 +1466,13 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) char t = s[-1]; singsub(&s); +#if 0 + /* + * This allows # and % to be at the start of + * a parameter in the substitution, which is + * a bit nasty, and can be done (although + * less efficiently) with anchors. + */ if (t == '/' && (flags & SUB_SUBSTR)) { if ((c = *s) == '#' || c == '%') { flags &= ~SUB_SUBSTR; @@ -1476,6 +1483,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) s++; } } +#endif } if (!vunset && isarr) { |