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

Re: problem with 'ls | less' shell function



On Fri, Oct 21, 2022 at 2:22 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> which means the new subshell for the
> function has to be in the same process group as the foreground job at
> the time the STOP/TSTP was received.

Or more accurately ... the parent needs to assign the tty pgroup to
the foreground job, and the forked child has to wait for that process
to exit and then grab the pgroup (or be assigned it by the parent).
There's a lot of juggling here.




Messages sorted by: Reverse Date, Date, Thread, Author