From 2260fe045e44864c3e6c8f0b7bdd8ba3e5b8d7c2 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 7 Mar 2002 16:20:00 +0000 Subject: Fix parsing of binary infix operators of test builtin. --- Src/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src') diff --git a/Src/parse.c b/Src/parse.c index 48332733b..5d78881c5 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -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, "!=") || -- cgit 1.4.1