Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: stdbuf -o0 -i0 via a Zsh native interface?



Ahso, that's why stdbuf uses ld-preload-like tricks to enforce the
buffer size… That makes me look more tolerant to your STTY-way
approach, i.e.: I suspect that ld-tricks are out of reach and I would
accept even STTY-like solution if only it would be implemented…

On Thu, 25 May 2023 at 19:09, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Thu, May 25, 2023 at 12:02 PM Sebastian Gniazdowski
> <sgniazdowski@xxxxxxxxx> wrote:
> >
> > I think that it does solve the problem, if the buffer settings are
> > applied to external commands. I would say that they are, but your
> > answer gives doubts… are they applied?
>
> Once you fork/exec, the initialization of stdio buffers etc. is all
> redone inside the new process, as far as I know.



-- 
Best regards,
Sebastian Gniazdowski




Messages sorted by: Reverse Date, Date, Thread, Author