diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2014-08-04 19:52:50 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2014-08-04 19:52:50 +0100 |
commit | 6116f1dafa412d6ac6da347719f7ddae57b5e446 (patch) | |
tree | f158173672c1674668c3921facf2d484d6d143b5 /Src/cond.c | |
parent | b516dc37ac00f6f9627a360d54a7a612d945375c (diff) | |
download | zsh-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/cond.c')
-rw-r--r-- | Src/cond.c | 3 |
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); |