bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dd and closed stderr


From: Eric Blake
Subject: Re: dd and closed stderr
Date: Fri, 28 Aug 2009 06:56:59 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jim Meyering on 8/28/2009 6:50 AM:
> dd is relatively unusual in that it is required
> to write to stderr, even upon successful completion.
> At first glance, I don't see language in the spec saying
> what dd must do when writing to stderr fails.

I think we point to an overall requirement in POSIX that all write
failures should be diagnosed.  True, we can't diagnose it by writing an
error message to stderr (since stderr is closed), but POSIX is clear that
any attempt to diagnose an error must also cause non-zero status.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqX1BsACgkQ84KuGfSFAYAwzQCgsNWN+wv9xXf9UH5OSmpx+5yj
iSkAn3pVx9/gKENjT5AzFsH+bbqBEfLg
=YTLA
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]