Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Backgroun job return code
- X-seq: zsh-users 14805
 
- From: "S?awek ?ak" <slawek.zak@xxxxxxxxx>
 
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
 
- Subject: Re: Backgroun job return code
 
- Date: Sun, 7 Feb 2010 14:34:53 +0100
 
- Cc: zsh-users <zsh-users@xxxxxxx>
 
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=gamma;        h=domainkey-signature:references:from:in-reply-to:mime-version:date         :received:message-id:subject:to:cc:content-type;        bh=qlAa5Et7WdyI6DS+cImYJB51QlFUj7uYPWlwr/BsIKQ=;        b=RPE2Q/jPKOkQS3C+crgLF/C9ibr0ovfJkLKxPPXWM/kw6biswmAD2W2tduWUiY15Yn         PfOBrkdeYEQr1hiGFmFKFZnveoNOYLfWJ/fDqdYeUVpRmedn68o26Hyf3+oh1/GHfeeN         +PuLUb3stbuaCmMNiHdzCpPOffU4t3EsQkNtQ=
 
- Domainkey-signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;        h=references:from:in-reply-to:mime-version:date:message-id:subject:to         :cc:content-type;        b=Yb2HoSmo/LNQl4Tot4WKcBFJ0Z8dvQ46+X0RuwNZX3Az4bSbTUw1uo0Is1WSOndclH         EuaRsvqTIitubQE168Ur3gKGAOo6do+96FOT4AITBKciZDWUQrYtDniMZK25yj52cwXR         atMborIRqlhAmX14q5oumU4tEBq+YgHvSc+l8=
 
- In-reply-to: <100206185803.ZM16054@xxxxxxxxxxxxxxxxxxxxxx>
 
- List-help: <mailto:zsh-users-help@zsh.org>
 
- List-id: Zsh Users List <zsh-users.zsh.org>
 
- List-post: <mailto:zsh-users@zsh.org>
 
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
 
- References: <787bbe1c1002050410k6355e368hb6255bc33754dddf@xxxxxxxxxxxxxx> 	<1265408376-sup-2466@nixos> <787bbe1c1002060409i7363148au8e8c8fc56dc8c63@xxxxxxxxxxxxxx> 	<100206185803.ZM16054@xxxxxxxxxxxxxxxxxxxxxx>
 
On 2010-02-07, at 03:58, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
wrote:
> On Feb 6,  1:09pm, Slawek Zak wrote:
> }
> } Threading is really not necessary to get this. One idea would be
> } calling the TRAPEXIT function for *all* jobs, not only the
> foreground
>
> No, TRAPEXIT refers to the exit of the shell itself, or of a shell
> function, not of a job (not even the foreground job).
>
> What you really want is for TRAPCHLD to have access to the exit status
> (and possibly other job data) of the child that caused it to be
> called.
Of course Bart! :) Not possible now I suppose.
Best, /S
Messages sorted by:
Reverse Date,
Date,
Thread,
Author