From 6116f1dafa412d6ac6da347719f7ddae57b5e446 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 4 Aug 2014 19:52:50 +0100 Subject: 32954 plus new test: [[ ... = ...(#q...) ]] shouldn't force a glob. The (#q...) expression should simply be removed to leave a normal pattern as before --- Src/cond.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Src') diff --git a/Src/cond.c b/Src/cond.c index 3807409e3..df9065660 100644 --- a/Src/cond.c +++ b/Src/cond.c @@ -297,8 +297,7 @@ evalcond(Estate state, char *fromtest) right = dupstring(opat = ecrawstr(state->prog, state->pc, &htok)); - if (htok) - cond_subst(&right, !fromtest); + singsub(&right); save = (!(state->prog->flags & EF_HEAP) && !strcmp(opat, right) && pprog != dummy_patprog2); -- cgit 1.4.1