Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: less with subprocess
- X-seq: zsh-users 27219
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: less with subprocess
- Date: Sun, 3 Oct 2021 03:45:44 +0200
- Archived-at: <https://zsh.org/users/27219>
- In-reply-to: <CAH+w=7Z9TTi4-yUMQ1kn5c_i7kS1e6kOVo4O1rqvqEPayjDzwQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- References: <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> <CAH+w=7Z9TTi4-yUMQ1kn5c_i7kS1e6kOVo4O1rqvqEPayjDzwQ@mail.gmail.com>
On 2021-10-01 09:44:59 -0700, Bart Schaefer wrote:
> 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".
The version of "less" I was testing didn't have my suggested patch
(it has two other patches, but unrelated to signal handling).
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author