]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(integer_expected_error): Improve diagnostic -- now,
authorJim Meyering <jim@meyering.net>
Wed, 16 Jul 2003 10:28:52 +0000 (10:28 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 16 Jul 2003 10:28:52 +0000 (10:28 +0000)
it also matches the one from bash's builtin test.
(binary_operator): Add \n at end of diagnostic.

src/test.c

index e790be09edef9153562ca4bb7b5e1234ab3341ce..7a106c31160db781914600983f225e0cf25521dd 100644 (file)
@@ -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])