diff options
| author | Jim Meyering <meyering@redhat.com> | 2010-05-25 18:05:29 +0200 |
|---|---|---|
| committer | Jim Meyering <meyering@redhat.com> | 2010-05-25 18:05:29 +0200 |
| commit | 5d59808a65dc05c2777afb4b78128ca9db1ea78f (patch) | |
| tree | e80122de6f26d174008bdd23c4c38671df95cb94 | |
| parent | maint: remove unneeded double quotes on RHS of shell assignments (diff) | |
| download | coreutils-5d59808a65dc05c2777afb4b78128ca9db1ea78f.tar.gz coreutils-5d59808a65dc05c2777afb4b78128ca9db1ea78f.zip | |
maint: don't emit an extra newline in each of two diagnostics
* src/shuf.c (main): Remove a stray newline in a diagnostic.
* src/od.c (main): Likewise.
Detected via these:
git grep -A1 'error *(.*,$' | grep -C1 '\\n"[,)]'
git grep 'error *(.*;$' | grep '\\n"[,)]'
| -rw-r--r-- | src/od.c | 2 | ||||
| -rw-r--r-- | src/shuf.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1800,7 +1800,7 @@ it must be one character from [doxn]"), if (traditional && 1 < n_files) { error (0, 0, _("extra operand %s"), quote (argv[optind + 1])); - error (0, 0, "%s\n", + error (0, 0, "%s", _("compatibility mode supports at most one file")); usage (EXIT_FAILURE); } diff --git a/src/shuf.c b/src/shuf.c index 4f4ca1c78..67b19af15 100644 --- a/src/shuf.c +++ b/src/shuf.c @@ -355,7 +355,7 @@ main (int argc, char **argv) { if (n_operands) { - error (0, 0, _("extra operand %s\n"), quote (operand[0])); + error (0, 0, _("extra operand %s"), quote (operand[0])); usage (EXIT_FAILURE); } n_lines = hi_input - lo_input + 1; |
