From: Herbert Xu <herbert@gondor.apana.org.au>
To: Ron Yorston <rmy@frippery.org>
Cc: dash@vger.kernel.org
Subject: Re: [PATCH] jobs: Report creation of background jobs
Date: Fri, 5 Apr 2024 16:49:00 +0800 [thread overview]
Message-ID: <Zg+6/PsA7tHAqLrf@gondor.apana.org.au> (raw)
In-Reply-To: <61501d4a.OSIdlouybdqIzH3I%rmy@frippery.org>
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 <rmy@frippery.org>
> ---
> 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 <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
prev parent reply other threads:[~2024-04-05 8:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-26 7:12 [PATCH] jobs: Report creation of background jobs Ron Yorston
2024-04-05 8:49 ` Herbert Xu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zg+6/PsA7tHAqLrf@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=dash@vger.kernel.org \
--cc=rmy@frippery.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).