Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Backgroun job return code
- X-seq: zsh-users 14802
- From: Slawek Zak <slawek.zak@xxxxxxxxx>
- To: Marc Weber <marco-oweber@xxxxxx>
- Subject: Re: Backgroun job return code
- Date: Sat, 6 Feb 2010 13:09:43 +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:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=4ZEFnvpEMaAKFhv6K+jkzDg7GnHkCTQmnwSDCwThb1E=; b=kpn1LQ/vHgoYaKoHGDbkuX71eh+6g+ItCNb+iaoyjgciw4O+1dRJ1BRCJuxKi3xHIX Uz2nCCGhOyDYVnC7TqAIO6aDyI7pyMYsXKm3z74Gx0UhoRtPw/V8/9OKIcorOfNnbyXO d0zrCONe535VY+5Z2Q1RbG6QJMosROWQ2nuto=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=sDQfrHneHD373ZfWgtyCq3CDjCP7wedpi4Glea0sjiZRc2qDvwZKf2QU122IAq3gLy rZ6f0Qnh2VTZb7Nxk89/N0oQaYN7IIf5+I6G7qSGXrGRhFCZYtKfiZg62zEtV6UO4YMv 3CRdgT9WeAeqrkIRSUuMkYgUlvrS/eNyGY/Ss=
- In-reply-to: <1265408376-sup-2466@nixos>
- 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>
Threading is really not necessary to get this. One idea would be
calling the TRAPEXIT function for *all* jobs, not only the foreground
ones and adding an argument to the invocation - return code of just
exited command. Oh - and let's get crazy - command line for it too :)
/S
On Fri, Feb 5, 2010 at 11:21 PM, Marc Weber <marco-oweber@xxxxxx> wrote:
> Hi /S
>
>> I'd like to obtain RC of a background pipeline asynchronously. Is
> I'm not ZSH guru. I tried something similar: Running multiple jobs at
> the same time. You should consider using a real scripting language such
> as Ruby or Python or Perl which do support threads.
> In the long run it's worth learning such a language.
>
> I'm not omniscient. This is my experience.
>
> Marc Weber
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author