From 38bb84d97577fdfc359ba0261daea730a0cfb405 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 8 May 2000 08:58:37 +0000 Subject: 11194, 11200, 11214 --- Src/subst.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Src') 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) { -- cgit 1.4.1