From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12603 invoked by alias); 1 Dec 2009 22:33:23 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 14625 Received: (qmail 22011 invoked from network); 1 Dec 2009 22:33:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received-SPF: none (proxy.melb.primenet.com.au: domain at klanderman.net does not designate permitted sender hosts) From: Greg Klanderman To: zsh-users@zsh.org Subject: Re: unable to wait on completed job Reply-To: gak@klanderman.net Date: Tue, 01 Dec 2009 17:33:02 -0500 In-Reply-To: <091130094855.ZM2913@torch.brasslantern.com> (Bart Schaefer's message of "Mon, 30 Nov 2009 09:48:54 -0800") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.17 (linux) References: <19213.26295.345572.732238@gargle.gargle.HOWL> <200911251748.nAPHmrCX010198@news01.csr.com> <091129211436.ZM1769@torch.brasslantern.com> <091130094855.ZM2913@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>>>> On November 30, 2009 Bart Schaefer 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