GNU bug report logs - #6270
[PATCH] maint: don't emit an extra newline in each of two diagnostics

Previous Next

Package: coreutils;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Tue, 25 May 2010 16:15:02 UTC

Severity: normal

Tags: patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6270 in the body.
You can then email your comments to 6270 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#6270; Package coreutils. (Tue, 25 May 2010 16:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jim Meyering <jim <at> meyering.net>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 25 May 2010 16:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: bug-coreutils <at> gnu.org
Subject: [PATCH] maint: don't emit an extra newline in each of two diagnostics
Date: Tue, 25 May 2010 18:13:43 +0200
FYI,

From 5d59808a65dc05c2777afb4b78128ca9db1ea78f Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering <at> redhat.com>
Date: Tue, 25 May 2010 18:05:29 +0200
Subject: [PATCH] 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"[,)]'
---
 src/od.c   |    2 +-
 src/shuf.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/od.c b/src/od.c
index 964552d..4508725 100644
--- a/src/od.c
+++ b/src/od.c
@@ -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 4f4ca1c..67b19af 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;
--
1.7.1.342.g1c280




bug closed, send any further explanations to Jim Meyering <jim <at> meyering.net> Request was from Jim Meyering <jim <at> meyering.net> to control <at> debbugs.gnu.org. (Thu, 03 Jun 2010 12:34:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 02 Jul 2010 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 356 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.