Re: Inconsistent behaviour between 'jobs' and 'echo "$(jobs)"'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux