From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id b96a9115 for ; Sun, 30 Dec 2018 18:25:10 +0000 (UTC) Received: (qmail 26018 invoked by alias); 30 Dec 2018 18:24:59 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43958 Received: (qmail 29507 invoked by uid 1010); 30 Dec 2018 18:24:59 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-5.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(80.0.253.69):SA:0(-2.0/5.0):. Processed in 0.836907 secs); 30 Dec 2018 18:24:59 -0000 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Originating-IP: [86.16.88.158] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.3 cv=U6e889ju c=1 sm=1 tr=0 a=MiHCjVqLJ44lE3bxSlffFQ==:117 a=MiHCjVqLJ44lE3bxSlffFQ==:17 a=IkcTkHD0fZMA:10 a=P5Q6L1DsAAAA:8 a=CRYXbqhYdNBtZJEAjqwA:9 a=QEXdDO2ut3YA:10 a=jxi25fIUQso1YTL4nQQM:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1546193598; bh=cpyJZk7kyoju5civ/7AxcGceA4SK21VVcpZIlqQubl4=; h=Subject:From:To:Date:In-Reply-To:References; b=t5WiTf5AY1lTahZ5kA9TNKxYbxgfxSrLGorPno9cn+3Z5+nMcfPDyWAAcmOTKEAXG nYHXT6ungnTePTE+IVMiqXzP6XjYbBjZ2sk3CGd5WnQKVET335JY1ZvulxPPZLh2ON AaEmIslipkvsqd2M5x97+7Vf1fOTuJMrCD7ATQbWDLDPJ0Mel/rKylpjzG+HZ9ep0w rjXPQfg/0rMtxFOP6dEEQZOWbrJGr46l4abirr/RjPazBsrCi0TebzKyFB+2jtJv9I jfFOatygPDTa2HAN57IZi09wAC/+q1ypRGRtFR2vJj4a3zfmntABL67dcLQP2Bl1cN u13BcDEKic2Kw== Message-ID: <68acab1800abb91601219452314122c06f3fa62a.camel@ntlworld.com> Subject: Re: 'wait' exit status and warnings [was: The big kre zsh bug report] From: Peter Stephenson To: Zsh hackers list Date: Sun, 30 Dec 2018 18:13:18 +0000 In-Reply-To: References: <18f684a8-2fec-4ebe-a63e-cf6688ae519f@inlv.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfJgaJielWBTeh/auVEuwdEdQwBuPZkOV0HuTCxkDIoskM0rGUf66hagYBMa0+aiYuhpPRjHEh1tmQhdRhjZ4xTDJJ1E7RDjfgstUKvioq2bBC7/Z75tw Qvmv5GAXlONq4SEsRkBZrCt96UaaS0QcAYnt0Im1JvHfHhUikyvSMxzM On Tue, 2018-12-25 at 20:44 +0000, Martijn Dekker wrote: > Op 21-12-18 om 07:53 schreef Bart Schaefer: > > On Thu, Dec 20, 2018 at 2:48 PM Martijn Dekker wrote: > > > > tc-so:Executing command [ zsh --emulate sh -c wait 1 ] > > > > tc-se:Fail: incorrect exit status: 1, expected: 127 > > > > Probably easily fixed. > > Well, kind of. > > I got as far as the attached patch, but it turns out there is another > bug with 'wait': '(wait %1)' in a subshell quietly returns status 0 even > if there is no such job. ('(wait %2)' and up are ok.) Thanks --- for now I've committed this with the test doctored and a note in the test file. pws