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 44594
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: A serious bug in execution – where to debug?
- Date: Tue, 30 Jul 2019 19:41:56 +0200
- Cc: 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:content-transfer-encoding; bh=8BFqDqSdD35CD2Fco7sMIVjICGcRw5N/uH2O+3eUx1A=; b=G22oHU5Rby5PkgmwgLoB7kcuarYXhnHPWmOGCFhtWMjJogd4VyelUmiKw12G4/Bso/ Nw3f8ylZLXoQJesH867g2D+/nVMJaVBUlzfpVqOpBXV1NRxRF0+mbZifg23vTue4zt13 Y53Txr0ENhM+Czx+TLSkQItrwOye2nx2JIoo6wJCStTLsE2hifQaMLDE1g60n3zCkgJ8 2SkWPx5G4z6n45WuFOcJ7tJC4OFqVbzhsb0JWWlfAKNTwz5SS6IbCDmBHhWWI2s6W2yU CHUl6CRiWhkHtwCg2EFWqy3+SqAkye4mzZ+e2PIHWkzlN0F2DXmUAEGccJ/VI+LMoST8 lROg==
- In-reply-to: <CAKc7PVCKrg_PnZ6jKLoAwR8XQnswT-Bs2TJA7oefhd_gRtHKUQ@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>
On Tue, Jul 30, 2019 at 7:01 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> Hello,
> I have a zle function that shadows the zle builtin. The bug is: the
> function exits after a certain function get's called, if the arguments
> are: -F {descriptor-#} _gitstatus_process_response_POWERLEVEL9K (I
> didn't yet eliminate the second argument's so I'm pasting it as is).
>
> The symptoms are:
> - print before the call does output, after the call – doesn't (as
> arranged as in here: http://psprint.blinkenshell.org/zle-exit-fun.png)
> - the plugin's following zle -F {descriptor-#} call reports error:
> --zplg-shadow-zle:zle:64: No handler installed for fd 21
> meaning that the execution didn't really reach the point where an
> actual builtin zle is being called by the shadowing function.
Perhaps because of this?
https://github.com/romkatv/powerlevel10k/blob/f14497918f0a70955f6d227d1e002ad2a3f94cc8/gitstatus/gitstatus.plugin.zsh#L302-L307
Feel free to send me a PR replacing `zle` calls in this file with
`builtin zle`. I suppose you aren't shadowing `builtin` for good
measure?
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author