coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFE: enable buffering on null-terminated data


From: Kaz Kylheku
Subject: Re: RFE: enable buffering on null-terminated data
Date: Mon, 18 Mar 2024 22:24:25 -0700
User-agent: Roundcube Webmail/1.4.15

On 2024-03-17 17:12, Zachary Santer wrote:
> On Thu, Mar 14, 2024 at 11:14 AM Carl Edquist <edquist@cs.wisc.edu> wrote:
> 
>> Where things get sloppy is if you add some stuff in a pipeline after your
>> build script, which results in things getting block-buffered along the
>> way:
>>
>>         $ ./build.sh | sed s/what/ever/ | tee build.log
>>
>> And there you will definitely see a difference.
> 
> Sadly, the man page for stdbuf specifically calls out tee as being
> unaffected by stdbuf, because it adjusts the buffering of its standard
> streams itself. The script I mentioned pipes everything through tee,
> and I don't think I'm willing to refactor it not to. Ah well.

But what tee does is set up _IONBF on its output streams,
including stdout.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]