Re: [execline] [RFC] Allow `foreground` to handle signals

From: Joshua Ismael Haase Hernández <hahj87_at_gmail.com>
Date: Sun, 27 Jun 2021 12:42:17 -0500

El dom, 27 jun 2021 a las 6:33, Laurent Bercot (<ska-skaware_at_skarnet.org>)
escribió:

> execline was not designed to handle interactive scripts: you need
> some extra tooling in the presence of job control.
>

Isn't job control the task of commands such as `foreground` and
`background`?

Is your opinion that this modified foreground is outside the scope of
execline,
ant thus there should it be a toolset for job control?

  To achieve that, replace "foreground { editor ${file} }" with
> "foreground { s6-setsid -g editor ${file} }".
>

Thanks, this is half the answer, now the editor receives the signals,
the other half of the answer is spwaning the next process
when the editor exits.

As of now, on the terminal one needs to use `fg` to continue the process.
Received on Sun Jun 27 2021 - 19:42:17 CEST

This archive was generated by hypermail 2.4.0 : Sun Jun 27 2021 - 19:42:59 CEST