GNU bug report logs - #18567
strange tee behavior

Previous Next

Package: coreutils;

Reported by: Karl Nordström <karl.nordstrom <at> gmail.com>

Date: Fri, 26 Sep 2014 19:00:07 UTC

Severity: normal

Tags: fixed, patch

Merged with 11540

Done: Assaf Gordon <assafgordon <at> gmail.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 18567 in the body.
You can then email your comments to 18567 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#18567; Package coreutils. (Fri, 26 Sep 2014 19:00:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Karl Nordström <karl.nordstrom <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 26 Sep 2014 19:00:08 GMT) Full text and rfc822 format available.

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

From: Karl Nordström <karl.nordstrom <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: strange tee behavior
Date: Fri, 26 Sep 2014 11:53:46 +0200
[Message part 1 (text/plain, inline)]
Hi,

I have a small problem with tee, which could be exemplified by the
following code:

wc -l largefile
> 235324 largefile
cat largefile |tee -i >(head > /dev/null) |wc -l
> 390

tee doesn't forward the whole file but seems to stop when head don't read
anymore. I thought the -i flag was supposed to block such behavior?

I did this test with GNU coreutils 8.21 under fedora fc20. If you need more
info, just let me know.

Best,
Karl
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#18567; Package coreutils. (Fri, 26 Sep 2014 19:28:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: Karl Nordström <karl.nordstrom <at> gmail.com>
Cc: 18567 <at> debbugs.gnu.org
Subject: Re: bug#18567: strange tee behavior
Date: Fri, 26 Sep 2014 20:27:37 +0100
unarchive 11540
forecemerge 11540 18567
stop

On 09/26/2014 10:53 AM, Karl Nordström wrote:
> Hi,
> 
> I have a small problem with tee, which could be exemplified by the
> following code:
> 
> wc -l largefile
>> 235324 largefile
> cat largefile |tee -i >(head > /dev/null) |wc -l
>> 390
> 
> tee doesn't forward the whole file but seems to stop when head don't read
> anymore. I thought the -i flag was supposed to block such behavior?
> 
> I did this test with GNU coreutils 8.21 under fedora fc20. If you need more
> info, just let me know.

This issue is already reported at http://bugs.gnu.org/11540
and I intend to deal with it through adding the tee --write-error=... option.
Shouldn't bee too hard.  I'll try and do it this weekend.

thanks,
Pádraig.




Forcibly Merged 11540 18567. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Fri, 26 Sep 2014 19:40:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 09 Oct 2018 21:17:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 11540 <at> debbugs.gnu.org and Igor Ippolitov <iippolitov <at> gmail.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 09 Oct 2018 21:17:02 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. (Wed, 07 Nov 2018 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 282 days ago.

Previous Next


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