From: Seb <sbb@tuxfamily.org>
To: dash@vger.kernel.org
Cc: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
Subject: Re: Inconsistent behaviour between 'jobs' and 'echo "$(jobs)"'
Date: Wed, 21 Jan 2015 14:42:25 +0100 [thread overview]
Message-ID: <20150121134225.GA708@ein.free.fr> (raw)
In-Reply-To: <54BE89D6.7040101@ertelnet.rybnik.pl>
On Tue, Jan 20, 2015 at 06:01:10PM +0100, Damian Wrobel wrote:
> I would prefer not to code something like the following:
>
> $ jobs -p >/tmp/jobs-$$ && kill $(cat /tmp/jobs-$$); rm /tmp/jobs-$$
As a better alternative, you could maybe try this:
trap : TERM # in case we have something to do after...
/bin/kill -s TERM -$$
Just an idea...
++
Seb.
prev parent reply other threads:[~2015-01-21 13:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-19 18:01 Inconsistent behaviour between 'jobs' and 'echo "$(jobs)"' Damian Wrobel
[not found] ` <20150120084438.GA751@ein.free.fr>
2015-01-20 17:01 ` Damian Wrobel
2015-01-20 19:07 ` Seb
2015-01-21 13:42 ` Seb [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=20150121134225.GA708@ein.free.fr \
--to=sbb@tuxfamily.org \
--cc=dash@vger.kernel.org \
--cc=dwrobel@ertelnet.rybnik.pl \
/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).