Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'wait' exit status and warnings [was: The big kre zsh bug report]
- X-seq: zsh-workers 44008
- From: Martijn Dekker <martijn@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: 'wait' exit status and warnings [was: The big kre zsh bug report]
- Date: Mon, 21 Jan 2019 22:53:58 +0000
- Autocrypt: addr=martijn@xxxxxxxx; prefer-encrypt=mutual; keydata= xsDNBFVvW4wBDADV3z/EXaKGxp/KJ4iWK0UaiNaXBx3wYzwmeN/vN8uYsplaLIZdwf3RjhIG vV6cVi0byt3ezTTGfw1ErgH4fUzobu87EaX07jlVgK5tztNGcohmTjFe6rFgj1WEk/i2zjyS 3yL2fa4bjJsXAFpJiNj0yYwdnqADI7hkBvNk4GZc3RPEYfNnUQ/O5xigc1Vq3ZqjbORseETe Op9gELvxWNwZbLD9DykYJFElDk6NwjscIqXQXus+O5JKzcEEYOC7Ut6XSJ5P5Ca1R6bzLRgf ZTaaedEryb19YHPIrdZd5Z6ET2PtKxPM+hzUtFG8oQwO4+nc7Zeq3wX9y62eWbOfJFeDZktc 70X4zsaG74XO1+Jarl1sid8XaIitfC1kbGI++x+Ehw8TLtqxmkaLVMcdJ4QRYlMUxHhvqanj +DlTcsLXS690Dka8Sca13UZ41Bk6F8JpQZgVzvIAnV1PZtN1+c/G4DAp5v0zfAPikHJkWAEn 0b83e1V9tHR2bovHfwyEe4sAEQEAAc0hTWFydGlqbiBEZWtrZXIgPG1hcnRpam5AaW5sdi5v cmc+wsD5BBMBCAAjBQJVb1uMAhsDBwsJCAcDAgEGFQgCCQoLBBYCAwECHgECF4AACgkQgQYS pNaUtYHGKAwAvJ81lu/894/zJI7uWNHtVkswMiqlFoA4AhoJKEhq0PbDmWH8xGmN9ykQHec+ FRI1kPAtfxx3VNNZ3gK/4gG8o7uZAKnw8Elkk8tORYO38w/+jivXYUeZn2o2yE6USSpuDohQ mWKc34vkg6FAdyau12SYxIGPsokV2u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82tzUWIEmR/73XK9BwVyfAUpE/4rKGGThRRdtIt +GHeKmr4+JAMOiZRotehBXcg9Og+cGMsn/gMBPRnCqShMFlahUvAwGkl05Sy7tQulw9BqnPo dkcv5nPFwwmzhCALsTTolRHFM78rlMoEDskMa/Ej5coQJltUArGKbVk0UVb03i0Cpzc3Lf1K V9UIMkCX9YZgBnEY1HTH6KKStduwadCWLG97KSB5xRGs0tcaJP81TtixuaKJc0S7xKql6+3b AMNutkhPrQeb65bTq9gWxAJwmaL73afRIG0QqD9sTv9Ez3CvdONz+kR2nmGA+ilLJgLehTTf 48csIvBNgfdRumZbb7sieWyff/8hEQk=
- In-reply-to: <68acab1800abb91601219452314122c06f3fa62a.camel@ntlworld.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Openpgp: preference=signencrypt
- References: <d7b0451f90bdfe61f48cc1361690180e07158900.camel@ntlworld.com> <b8851c3a50bd8bceba1961f2f764e1a6869481ac.camel@ntlworld.com> <18f684a8-2fec-4ebe-a63e-cf6688ae519f@inlv.org> <CAH+w=7bthv3E3Lr3UC9FvroXFcS1W+fDRuS6CLPxy_eyX0szqw@mail.gmail.com> <bb6689f2-5d9a-da96-46b8-69d34f08fdf2@inlv.org> <68acab1800abb91601219452314122c06f3fa62a.camel@ntlworld.com>
Op 30-12-18 om 18:13 schreef Peter Stephenson:
> 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 <martijn@xxxxxxxx> 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.
I think my patch is wrong -- now 'fc' in POSIX mode doesn't give
warnings either, though it should. They should only be suppressed for
'wait'.
- M.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author