diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2016-03-06 15:10:27 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-03-06 15:10:27 -0800 |
commit | bc958ab27591f3bb717efeb95fa541ee14a2405b (patch) | |
tree | 1a0212d6e3d98fe1276c5692ccfd5379d62dcb82 /Src | |
parent | 440c6beec09b3b4ba68955d807d48acef0d4360a (diff) | |
download | zsh-bc958ab27591f3bb717efeb95fa541ee14a2405b.tar.gz zsh-bc958ab27591f3bb717efeb95fa541ee14a2405b.tar.xz zsh-bc958ab27591f3bb717efeb95fa541ee14a2405b.zip |
38106: if...then if...else should be a parse error.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/parse.c b/Src/parse.c index 628a9aa2d..349d1e427 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -1413,7 +1413,7 @@ par_if(int *cmplx) } } cmdpop(); - if (xtok == ELSE) { + if (xtok == ELSE || tok == ELSE) { pp = ecadd(0); cmdpush(CS_ELSE); while (tok == SEPER) |