1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 17:01:19 +02:00

Fix parsing of binary infix operators of test builtin.

This commit is contained in:
Bart Schaefer 2002-03-07 16:20:00 +00:00
parent e56350c481
commit 2260fe045e
2 changed files with 12 additions and 3 deletions

@ -1,3 +1,12 @@
2002-03-07 Bart Schaefer <schaefer@zsh.org>
* 16737 (tweaked): Src/parse.c: fix parsing of binary infix
operators of builtin `test' when there are more than three
arguments.
* unposted: Etc/BUGS: stop mentioning a bug that's been fixed
since 3.1.6.
2002-03-07 Adam Spiers <adam@spiers.net>
* 16779: Completion/Unix/Command/_mysqldiff,
@ -74,7 +83,7 @@
2002-02-28 Bart Schaefer <schaefer@zsh.org>
* 16748: Completion/Zsh/Command/_zle: Fix infinite loop
* 16748: Completion/Zsh/Command/_zle: fix infinite loop
introduced by 16464.
2002-02-25 Sven Wischnowsky <wischnow@zsh.org>

@ -1859,9 +1859,9 @@ par_cond_2(void)
condlex();
return par_cond_double(dupstring("-n"), s1);
}
if (testargs[1] && !testargs[2]) {
if (testargs[1]) {
/* three arguments: if the second argument is a binary operator, *
* perform that binary test on the first and the trird argument */
* perform that binary test on the first and the third argument */
if (!strcmp(*testargs, "=") ||
!strcmp(*testargs, "==") ||
!strcmp(*testargs, "!=") ||