From: Harry Fellowes Date: Fri, 25 Jul 2025 13:26:38 +0000 (+0100) Subject: test: removed dead code for unrecognised binary operators X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecde78e1df048a4c56e73da7c61424f346c8f5d7;p=thirdparty%2Fcoreutils.git test: removed dead code for unrecognised binary operators the fallback error in binary_operator() was unreachable, since invalid binary operators are rejected in three_arguments() via binop() which returns false and prevents entry into binary_operator(). this dead code was unreachable and safe to remove ref: line 636 where "binary operator expected" is generated. Signed-off-by: Harry Fellowes Copyright-paperwork-exempt: Yes --- diff --git a/src/test.c b/src/test.c index 3df6adf28c..d8be5a70bc 100644 --- a/src/test.c +++ b/src/test.c @@ -353,8 +353,7 @@ binary_operator (bool l_is_l) break; } - /* FIXME: is this dead code? */ - test_syntax_error (_("%s: unknown binary operator"), quote (argv[op])); + /* Dead code removed: unrecognised binary operators are filtered before binary_operator() is called, see line 636*/ } if (argv[op][0] == '='