Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: less with subprocess
- X-seq: zsh-users 27202
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: less with subprocess
- Date: Fri, 1 Oct 2021 09:44:59 -0700
- Archived-at: <https://zsh.org/users/27202>
- In-reply-to: <20210930192211.GB1641202@zira.vinc17.org>
- List-id: <zsh-users.zsh.org>
- References: <CAP+y1xDdPi=DHR0KNrdCRiroC-54ev8HhfPW5O+59ap1COLBSg@mail.gmail.com> <20210927233143.GA16620@gmx.de> <CAH+w=7YOFKGfihX5794JVxcXTtS_QrAFpHAmaAotJOAYO7JMzg@mail.gmail.com> <CAH+w=7ZVWU444iL0u_RLfa-ormZTos+7M8iUQo-QqowqioFzCg@mail.gmail.com> <20210928185230.GA7495@gmx.de> <CAH+w=7ZgPGYngBrDEwcGqjrJ8GuLZ0Pn6VO9jDjvWz=_MPTzrw@mail.gmail.com> <20210929130217.GB25513@cventin.lip.ens-lyon.fr> <CAH+w=7an7ATJ51o-67ztFX+ShfEbrf158+Xi7OPtrm0X82vSbg@mail.gmail.com> <CAP+y1xBb37u4OZgHjov=LS-AH4mnx2D27JQP799gH_hC3Xod4w@mail.gmail.com> <CAH+w=7ZN0pziTVeEvy-Sjf6J-NyjVoi_8cnR1j6nVXUMnAmCRA@mail.gmail.com> <20210930192211.GB1641202@zira.vinc17.org>
On Thu, Sep 30, 2021 at 12:22 PM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>
> On 2021-09-29 10:56:30 -0700, Bart Schaefer wrote:
> > On Wed, Sep 29, 2021 at 7:47 AM Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
> > >
> > > LF () { () { cat >|$1 &! less $1 ; kill $! } =(:) }
> > LF <<(find)
>
> This is much worse! Ctrl-C then [End] yields
>
> zsh: suspended (tty input)
>
> then "fg" makes the terminal unusable.
This doesn't happen to me with the current zsh head revision from git.
I do get the "suspended (tty input)" but "fg" just brings back "less"
... and the behavior is a bit different (although I'm not sure if
consistently so) when the process substitution uses 2>/dev/null or
2>&1
This does seem to have something to do with your suggested patch to "less".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author