Re: [PATCH] jobs: Report creation of background jobs

Herbert Xu <[email protected]>
Newsgroups org.kernel.vger.dash
Message-ID <Zg+6/[email protected]>
On Sun, Sep 26, 2021 at 08:12:10AM +0100, Ron Yorston wrote:
> Although it doesn't seem to be in POSIX it's relatively common
> for interactive shells to report details of jobs run in the
> background.  bash, ksh and tcsh report job id and pid while
> the Bourne shell from Unix V7 reports only the pid.
> 
> This from bash:
> 
>    $ sleep 100 & sleep 200 &
>    [1] 4626
>    [2] 4627
>    $ sleep 300 | sleep 400 &
>    [3] 4636
>    $ jobs -l
>    [1]   4626 Running                 sleep 100 &
>    [2]-  4627 Running                 sleep 200 &
>    [3]+  4635 Running                 sleep 300
>          4636                       | sleep 400 &
> 
> Unlike reporting of job completions such messages are not controlled
> by 'set -m'.
> 
> ash has never supported reporting of the creation of background
> jobs.  Add this feature to dash.
> 
> Signed-off-by: Ron Yorston <[email protected]>
> ---
>  src/jobs.c | 2 ++
>  1 file changed, 2 insertions(+)

Thanks but as minimalism is one of the primary goals of dash
I won't be applying this.
-- 
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.