Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A serious bug in execution – where to debug?
- X-seq: zsh-workers 44610
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: A serious bug in execution – where to debug?
- Date: Tue, 30 Jul 2019 23:38:26 +0200
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yrUBvCUgSEoYEdkbuOX7c/NzEp8xDsDYmW4/2NE0W84=; b=h7hiyCU6x0mQw/QoWxenY39BqQTy1RPkNamtfN/NElALZV6MMVNRwhMUyuqv7Lvte6 AHiM1PmeVIP06sYLDnRb+K1+47UWszvk3SFqSbB09hDoEyp7z5rgPuniJ+zVFU+0GAJj 3DTaQLI941bFnwyRoupBmKrs7BkH15gySx7yIVUbOGEsJexsR2MK+oFAYXcQYxDgUy25 rogp9Ao/AMl+hb0TbvgiIRSiY9y2s9huqpi3V/9ji2RrwmH5gCh6P44+CiYS7HK47tib Skwc1iU6PPu0AO4a6XJgu6gFPZIuc0KKtSmEPo9y1gg+5KUeM8c2By/gNibwB9ver5J7 gSEw==
- In-reply-to: <CAN=4vMqkjK5hPxhhXYwp=4Sj49VfyZgEH06tK0vggnHyddbrsA@mail.gmail.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
- References: <CAKc7PVCKrg_PnZ6jKLoAwR8XQnswT-Bs2TJA7oefhd_gRtHKUQ@mail.gmail.com> <CAH+w=7ZEukuvaOiBymgJ1nR1TbriEMSxx9L8-=hojxQoKOaRUw@mail.gmail.com> <CAKc7PVCbP5inrfFW3xiphBN5uH3o3ayVRnzzEbybfkp-Y5Fubw@mail.gmail.com> <CAN=4vMqkjK5hPxhhXYwp=4Sj49VfyZgEH06tK0vggnHyddbrsA@mail.gmail.com>
On Tue, 30 Jul 2019 at 23:02, Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>> On Tue, 30 Jul 2019 at 20:28, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>> > If you change the [[ ... ]] && ... to an if/then, does the behavior change?
>> > If you add a "return" or "return $?" at the end of the function, does it change?
>>
>> a) yes, the problem cancels with if-then
>> b) no, adding one of the return's doesn't change the behavior
>
> I think Bart solved it. Do you have `emulate -L zsh` in your `zle` function?
No, but adding it helps. Any emulation (sh, ksh) does. Aah, so this is
the errreturn option set within your plugin! and the if-then was
setting the return code to 0. A very interesting situation, having
your code called in foreign context, to know what options to defend
from.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author