diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2015-02-12 09:27:53 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2015-02-12 09:27:53 -0800 |
commit | 7398fea05980df98a29eac6f504397ea0cb3be7a (patch) | |
tree | 6dd8a18a6cee632fa966946c42983b14a0375c7e /Src/parse.c | |
parent | 638bccb1c5e85da44f0dd551cc97bd522e633b4b (diff) | |
download | zsh-7398fea05980df98a29eac6f504397ea0cb3be7a.tar.gz zsh-7398fea05980df98a29eac6f504397ea0cb3be7a.tar.xz zsh-7398fea05980df98a29eac6f504397ea0cb3be7a.zip |
34514: Back out 34485, an alternate solution needs to be worked out.
(Tweaked to keep the unrelated hunk of the E01 test.)
Diffstat (limited to 'Src/parse.c')
-rw-r--r-- | Src/parse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/parse.c b/Src/parse.c index ffd25de9d..0b54a904d 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -1612,7 +1612,8 @@ par_funcdef(int *cmplx) num++; zshlex(); } - *cmplx = 1; + if (num > 0) + *cmplx = 1; ecbuf[parg] = ecused - parg; /*?*/ ecbuf[parg+1] = num; } @@ -1896,7 +1897,8 @@ par_simple(int *cmplx, int nr) argc++; zshlex(); } - *cmplx = 1; + if (argc > 0) + *cmplx = 1; ecbuf[parg] = ecused - parg; /*?*/ ecbuf[parg+1] = argc; } |