Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: less with subprocess



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