about summary refs log tree commit diff
path: root/Src/parse.c
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2002-03-07 16:20:00 +0000
committerBart Schaefer <barts@users.sourceforge.net>2002-03-07 16:20:00 +0000
commit2260fe045e44864c3e6c8f0b7bdd8ba3e5b8d7c2 (patch)
tree10309daef444b651eae4e0707d6b0d5323b00fd1 /Src/parse.c
parente56350c48168fbc029de35829373f865f96e25f8 (diff)
downloadzsh-2260fe045e44864c3e6c8f0b7bdd8ba3e5b8d7c2.tar.gz
zsh-2260fe045e44864c3e6c8f0b7bdd8ba3e5b8d7c2.tar.xz
zsh-2260fe045e44864c3e6c8f0b7bdd8ba3e5b8d7c2.zip
Fix parsing of binary infix operators of test builtin.
Diffstat (limited to 'Src/parse.c')
-rw-r--r--Src/parse.c4
1 files changed, 2 insertions, 2 deletions
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, "!=") ||