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

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



On Thu, May 25, 2023 at 12:28 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> 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…

Use with great caution, but to test the concept:

TRAPDEBUG() { setopt err_exit; stdbuf -o0 -i0 ${(z)ZSH_DEBUG_CMD} }

(assumes default setting of DEBUG_BEFORE_CMD option)




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