about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2014-08-04 19:52:50 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-08-04 19:52:50 +0100
commit6116f1dafa412d6ac6da347719f7ddae57b5e446 (patch)
treef158173672c1674668c3921facf2d484d6d143b5 /Src
parentb516dc37ac00f6f9627a360d54a7a612d945375c (diff)
downloadzsh-6116f1dafa412d6ac6da347719f7ddae57b5e446.tar.gz
zsh-6116f1dafa412d6ac6da347719f7ddae57b5e446.tar.xz
zsh-6116f1dafa412d6ac6da347719f7ddae57b5e446.zip
32954 plus new test: [[ ... = ...(#q...) ]] shouldn't force a glob.
The (#q...) expression should simply be removed to leave a normal pattern
as before
Diffstat (limited to 'Src')
-rw-r--r--Src/cond.c3
1 files changed, 1 insertions, 2 deletions
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);