Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: unable to wait on completed job
- X-seq: zsh-users 14625
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: unable to wait on completed job
- Date: Tue, 01 Dec 2009 17:33:02 -0500
- In-reply-to: <091130094855.ZM2913@xxxxxxxxxxxxxxxxxxxxxx> (Bart Schaefer's message of "Mon, 30 Nov 2009 09:48:54 -0800")
- 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: <19213.26295.345572.732238@xxxxxxxxxxxxxxxxxx> <200911251748.nAPHmrCX010198@xxxxxxxxxxxxxx> <m3638sr72x.fsf_-_@xxxxxxxxxxxxxx> <091129211436.ZM1769@xxxxxxxxxxxxxxxxxxxxxx> <m3skbwhvms.fsf@xxxxxxxxxxxxxx> <091130094855.ZM2913@xxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: gak@xxxxxxxxxxxxxx
>>>>> On November 30, 2009 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Note that AFAICT, even with the operation as supported by bash, you are
> only guaranteed access to the exit status of the most recently started
> asynchronous job;
FWIW, my testing seems to indicate that bash maintains the status of
completed jobs until wait'ed on. I've tested two jobs, and regardless
of the order in which they complete relative to the order they were
started, and also the order wait'ed on, wait seems to give the right
exit status. Running 'jobs' does not seem to clear the status of
completed jobs.
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author