summaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-16 10:28:52 +0000
committerJim Meyering <jim@meyering.net>2003-07-16 10:28:52 +0000
commitb1fd798094bd866d95070a223bcf344a1f3c1339 (patch)
treed0a3eeb4d68d42a00cf984bd02e1dcca93fc1e98 /src/test.c
parentf7ed03fa5070249ae0a3dc64ac11433ee0c12df7 (diff)
downloadcoreutils-b1fd798094bd866d95070a223bcf344a1f3c1339.tar.xz
(integer_expected_error): Improve diagnostic -- now,
it also matches the one from bash's builtin test. (binary_operator): Add \n at end of diagnostic.
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test.c b/src/test.c
index e790be09e..7a106c311 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])