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.

Full log


View this message in rfc822 format

From: Karl Nordström <karl.nordstrom <at> gmail.com>
To: 18567 <at> debbugs.gnu.org
Subject: bug#18567: 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)]

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

Previous Next


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