From b1fd798094bd866d95070a223bcf344a1f3c1339 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 16 Jul 2003 10:28:52 +0000 Subject: [PATCH] (integer_expected_error): Improve diagnostic -- now, it also matches the one from bash's builtin test. (binary_operator): Add \n at end of diagnostic. --- src/test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test.c b/src/test.c index e790be09ed..7a106c3116 100644 --- a/src/test.c +++ b/src/test.c @@ -213,7 +213,7 @@ beyond (void) static void integer_expected_error (char const *pch) { - test_syntax_error (_("integer expression expected %s\n"), pch); + test_syntax_error (_("%s: integer expression expected\n"), pch); } /* Return nonzero if the characters pointed to by STRING constitute a @@ -582,7 +582,9 @@ binary_operator (void) } break; } - test_syntax_error (_("unknown binary operator"), argv[op]); + + /* FIXME: is this dead code? */ + test_syntax_error (_("unknown binary operator\n"), argv[op]); } if (argv[op][0] == '=' && !argv[op][1]) -- 2.47.2