GNU bug report logs - #22195
deviation from POSIX in tee

Previous Next

Package: coreutils;

Reported by: Eric Renouf <erenouf <at> skaion.com>

Date: Thu, 17 Dec 2015 20:35:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eric Renouf <erenouf <at> skaion.com>, 22195 <at> debbugs.gnu.org
Subject: Re: bug#22195: deviation from POSIX in tee
Date: Thu, 17 Dec 2015 19:22:01 -0800
Eric Renouf wrote:
> If a write to any successfully opened file operand fails

But the write didn't fail here. Instead, a signal was sent to 'tee'. If you 
don't want the signal, trap it. E.g.:

trap '' PIPE
for i in {1..300}; do
    echo "$i"
    echo "$i" >&2
    sleep 1
done | tee >(head -1 > h.txt; echo "Head done") \
 >(tail -1 > t.txt) >/dev/null

will give the behavior you want.

So there is no deviation from POSIX here.




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

Previous Next


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