Re: WISH: tee -> add option for nonbufffered input/output

[email protected] (Bob Proulx) Wed, 5 Jun 2002 10:06:34 -0600
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <[email protected]>
Thanks for your report.

> i really wish to have option  in tee  utility  for switching input/output
> to be unbuffered. Now, teeing process ouput breaks "interactive
> watching". You do not see anything until tee's input buffer is filled.

Are you sure the problem is with 'tee' and not the commands before it?
I cannot recreate your problem.  Here is an illustration.

  while sleep 1;do date; done | tee /dev/null

The output of tee will be a tty and the libc stdio library will
normally leave that unbuffered.  The commands before it are seeing a
pipe instead of a tty and would traditionally have buffered output.

Bob