Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: stdbuf -o0 -i0 via a Zsh native interface?
- X-seq: zsh-workers 51787
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: stdbuf -o0 -i0 via a Zsh native interface?
- Date: Thu, 25 May 2023 11:35:01 -0700
- Archived-at: <https://zsh.org/workers/51787>
- In-reply-to: <1297534493.4668003.1685024167868@mail.virginmedia.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAKc7PVAh95GL_kx1FiACaexEHsK8PVLrJ+T4KxnKTZr=5KDXMw@mail.gmail.com> <1297534493.4668003.1685024167868@mail.virginmedia.com>
On Thu, May 25, 2023 at 7:16 AM Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
>
> > On 25/05/2023 12:21 Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
> > However, this is sub-optimal solution because I have to hideously
> > prepend the stdbuf command before each user CMD, meaning that entering
> > builtin commands will not work (e.g.: `stdbuf -i0 -o0 print smthg`).
> >
> > I wonder if the infamous buffering problem, solved by the hacky
> > ld-preload stdbuf program could be fixed on the level of Zsh?
>
> Something like this? It looks like a good fit for zsystem.
That's a start, but it doesn't solve Sebastian's problem of having to
hack the stdbuf prefix into the command string for external commands.
We'd need something akin to the STTY parameter to specify a prefix for
external commands. That might have its own security concerns.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author