From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Peter Stephenson <p.w.stephenson@ntlworld.com>,
Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: stdbuf -o0 -i0 via a Zsh native interface?
Date: Thu, 25 May 2023 19:02:17 +0000 [thread overview]
Message-ID: <CAKc7PVCj6NFJ_BNkQcU_c6_TY=q7vP9kyF034k2250f0xWPFbg@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7ZgA=80EP5peb6sO330hj2tY58LCJ=+7Lcr464L1A-JnQ@mail.gmail.com>
On Thu, 25 May 2023 at 18:36, Bart Schaefer <schaefer@brasslantern.com> wrote:
>
> On Thu, May 25, 2023 at 7:16 AM Peter Stephenson
> <p.w.stephenson@ntlworld.com> wrote:
> >
> > > On 25/05/2023 12:21 Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
> >
> > 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.
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?
Also, I wonder why the buffers can be set only to 0, 1 and 2 and not
to every descriptor? This might be an effect of suggestion from my
original post, but the mechanism of a builtin command obtaining file
descriptor opens my eyes that buffers can be changed on every
descriptor (or not?).
> We'd need something akin to the STTY parameter to specify a prefix for
> external commands. That might have its own security concerns.
That's an interesting approach, however IMHO it would make the
mechanism's interface script-targeted, and not foreground, interactive
work (because of the need of prepend command each time with a var export).
--
Best regards,
Sebastian Gniazdowski
next prev parent reply other threads:[~2023-05-25 19:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-25 11:21 Sebastian Gniazdowski
2023-05-25 14:16 ` Peter Stephenson
2023-05-25 18:35 ` Bart Schaefer
2023-05-25 19:02 ` Sebastian Gniazdowski [this message]
2023-05-25 19:09 ` Bart Schaefer
2023-05-25 19:28 ` Sebastian Gniazdowski
2023-05-25 21:21 ` Bart Schaefer
2023-05-26 2:17 ` Sebastian Gniazdowski
2023-05-26 10:23 ` Sebastian Gniazdowski
2023-05-26 9:30 ` Roman Perepelitsa
2023-05-26 20:52 ` Bart Schaefer
2023-05-30 11:17 ` Peter Stephenson
2023-05-31 12:38 ` Sebastian Gniazdowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKc7PVCj6NFJ_BNkQcU_c6_TY=q7vP9kyF034k2250f0xWPFbg@mail.gmail.com' \
--to=sgniazdowski@gmail.com \
--cc=p.w.stephenson@ntlworld.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).