GNU bug report logs - #27803
dd by default prints output to stderr instead of stdout

Previous Next

Package: coreutils;

Reported by: vasanth kumar <cvasanth2707 <at> gmail.com>

Date: Mon, 24 Jul 2017 15:07:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

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 27803 in the body.
You can then email your comments to 27803 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 bug-coreutils <at> gnu.org:
bug#27803; Package coreutils. (Mon, 24 Jul 2017 15:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to vasanth kumar <cvasanth2707 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 24 Jul 2017 15:07:02 GMT) Full text and rfc822 format available.

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

From: vasanth kumar <cvasanth2707 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: dd by default prints output to stderr instead of stdout
Date: Mon, 24 Jul 2017 20:04:27 +0530
[Message part 1 (text/plain, inline)]
Hi,

When I run a dd command successfully, it actually  prints I/O statistics to
standard error and not stdout . Is not it suppposed to print it on stdout
by default for a good run?

Thanks,
Vasanth
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Mon, 24 Jul 2017 15:14:02 GMT) Full text and rfc822 format available.

Reply sent to Eric Blake <eblake <at> redhat.com>:
You have taken responsibility. (Mon, 24 Jul 2017 15:14:03 GMT) Full text and rfc822 format available.

Notification sent to vasanth kumar <cvasanth2707 <at> gmail.com>:
bug acknowledged by developer. (Mon, 24 Jul 2017 15:14:03 GMT) Full text and rfc822 format available.

Message #12 received at 27803-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: vasanth kumar <cvasanth2707 <at> gmail.com>, 27803-done <at> debbugs.gnu.org
Subject: Re: bug#27803: dd by default prints output to stderr instead of stdout
Date: Mon, 24 Jul 2017 10:13:20 -0500
[Message part 1 (text/plain, inline)]
tag 27803 notabug
thanks

On 07/24/2017 09:34 AM, vasanth kumar wrote:
> Hi,
> 
> When I run a dd command successfully, it actually  prints I/O statistics to
> standard error and not stdout . Is not it suppposed to print it on stdout
> by default for a good run?

No, POSIX requires that it print stats to stderr.
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/dd.html
"STDERR

    On completion, dd shall write the number of input and output blocks
to standard error...."

Therefore, the behavior is intentional, and I'm closing this as not a
bug.  However, feel free to reply to this thread if you have further
questions on the topic.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#27803; Package coreutils. (Mon, 24 Jul 2017 15:28:02 GMT) Full text and rfc822 format available.

Message #15 received at 27803-done <at> debbugs.gnu.org (full text, mbox):

From: vasanth kumar <cvasanth2707 <at> gmail.com>
To: Eric Blake <eblake <at> redhat.com>
Cc: 27803-done <at> debbugs.gnu.org
Subject: Re: bug#27803: dd by default prints output to stderr instead of stdout
Date: Mon, 24 Jul 2017 20:49:29 +0530
[Message part 1 (text/plain, inline)]
Thanks Eric .I got the answer.

On Mon, Jul 24, 2017 at 8:43 PM, Eric Blake <eblake <at> redhat.com> wrote:

> tag 27803 notabug
> thanks
>
> On 07/24/2017 09:34 AM, vasanth kumar wrote:
> > Hi,
> >
> > When I run a dd command successfully, it actually  prints I/O statistics
> to
> > standard error and not stdout . Is not it suppposed to print it on stdout
> > by default for a good run?
>
> No, POSIX requires that it print stats to stderr.
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/dd.html
> "STDERR
>
>     On completion, dd shall write the number of input and output blocks
> to standard error...."
>
> Therefore, the behavior is intentional, and I'm closing this as not a
> bug.  However, feel free to reply to this thread if you have further
> questions on the topic.
>
> --
> Eric Blake, Principal Software Engineer
> Red Hat, Inc.           +1-919-301-3266
> Virtualization:  qemu.org | libvirt.org
>
>
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 22 Aug 2017 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 308 days ago.

Previous Next


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