-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Dean K. Gibson on 5/14/2008 2:00 PM: | Version 5.2.1 (from CentOS 4.1):
Consider upgrading; 5.2.1 is several years old, and the latest stable version is 6.11. | | When the output from "tee" is piped to "head" (or presumably any other | program that does not read all of stdin), tee gives "broken pipe" and | "write error" error messages. | | While that may be perhaps technically true, it was unexpected. More than just tee is affected by this. This is the behavior of any POSIX-compliant application when started with SIGPIPE ignored and where a write error occurs because the other end of the pipe closes without reading all output. | | Of course piping stderr to /dev/null gets rid of the messages. You | might consider an option to suppress the messages in this case, while | allowing other messages. Such an option already exists, and it is outside the realm of coreutils. You merely need to tell your shell to quit ignoring SIGPIPE: trap - PIPE - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----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 iEYEARECAAYFAkgrfB0ACgkQ84KuGfSFAYAipgCaAskrYAZWr/jXRYZC4D39OjQz 8SUAoLVo0Wv0eLfOxR6fiMIED59Z3pzg =iheL -----END PGP SIGNATURE----- _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
