[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TEE bug?
From: |
Eric Blake |
Subject: |
Re: TEE bug? |
Date: |
Wed, 14 May 2008 17:56:13 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666 |
-----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 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
iEYEARECAAYFAkgrfB0ACgkQ84KuGfSFAYAipgCaAskrYAZWr/jXRYZC4D39OjQz
8SUAoLVo0Wv0eLfOxR6fiMIED59Z3pzg
=iheL
-----END PGP SIGNATURE-----
- TEE bug?, Dean K. Gibson, 2008/05/14
- Re: TEE bug?,
Eric Blake <=
- Re: TEE bug?, Bob Proulx, 2008/05/14