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 51800
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: stdbuf -o0 -i0 via a Zsh native interface?
- Date: Fri, 26 May 2023 13:52:16 -0700
- Archived-at: <https://zsh.org/workers/51800>
- In-reply-to: <CAN=4vMoONEB5saZMUutyy7jKM16EXT2k00nfrhxrU1BkzvFi5Q@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAKc7PVAh95GL_kx1FiACaexEHsK8PVLrJ+T4KxnKTZr=5KDXMw@mail.gmail.com> <1297534493.4668003.1685024167868@mail.virginmedia.com> <CAH+w=7ZgA=80EP5peb6sO330hj2tY58LCJ=+7Lcr464L1A-JnQ@mail.gmail.com> <CAKc7PVCj6NFJ_BNkQcU_c6_TY=q7vP9kyF034k2250f0xWPFbg@mail.gmail.com> <CAH+w=7Yo93RmMZS5EkKXFMx+MXxfPMFdEQnaaq0MSkvSwCOaSw@mail.gmail.com> <CAKc7PVAdpW4UDPw8B6FgvXOJ29o-oDyG6isEM6Q1g5Qy9y6vWA@mail.gmail.com> <CAH+w=7ZbPmZWH1swPYDv-z+trheiKEO_Rz4wCU_AwbrUN7jpCA@mail.gmail.com> <CAKc7PVDr4PtJ=gyc+8LyRdSPsA2wYQCGwxE2PP1+HG0JF9T+oQ@mail.gmail.com> <CAKc7PVCK0MFvGmgYxzKf3+_3iktOx-6ivbB98YyxK4mPTZkU+Q@mail.gmail.com> <CAN=4vMoONEB5saZMUutyy7jKM16EXT2k00nfrhxrU1BkzvFi5Q@mail.gmail.com>
On Fri, May 26, 2023 at 2:30 AM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> This won't work reliably. E.g., it may not work on binaries that are
> linked against a different libc.
Exactly, hence my suggestion of a mechanism for prefixing external
commands with the name of a local "helper" that would work with the
current platform's libraries/linker. There's already a fork happening
so it doesn't seem worthwhile to try to build that functionality into
the shell itself.
> A more reliable solution for your
> problem is something like `unbuffer` from `expect`. This tool creates
> a TTY
Indeed, using unbuffer as the prefix command could be a fallback for
cases where there is no stdbuf equivalent.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author