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

Re: less with subprocess



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