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=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,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 63ba36be for ; Tue, 30 Jul 2019 17:42:49 +0000 (UTC) Received: (qmail 28762 invoked by alias); 30 Jul 2019 17:42:44 -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: 44594 Received: (qmail 9512 invoked by uid 1010); 30 Jul 2019 17:42:44 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f67.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25524. spamassassin: 3.4.2. Clear:RC:0(209.85.166.67):SA:0(-2.0/5.0):. Processed in 3.51485 secs); 30 Jul 2019 17:42:44 -0000 X-Envelope-From: roman.perepelitsa@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.67 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8BFqDqSdD35CD2Fco7sMIVjICGcRw5N/uH2O+3eUx1A=; b=Sp65EA/1/SWM5T2zou7i1XvBVLE9Io/OJrIrsdCWG6MPrksD/PDbY3O7zqduYtYYuj ektzIF96SxvvXKGzuwltODsEew30wp6eos9y/ZaoHWHRXn613X9KezJNp1s0cSgET/rh sHKL5CUKADvrV1gUW5We/WcdQms5CUlG8OzPRBb0UGkRrudmrT4lxOJ22EtfXs4mvIrV Lvgo5LKwuyqS8pFfj4dDCDevQlu1+8o8zDyv1GRJc/gMRA9+VhBY/yBUy3mn02sTdjqM Cqd/fnhygHfiz8Fu/1eFYJG7JnyRJb41BR0wwH9uBcKl6QyuD/eAZM1KcGkGZtg88P8i FkoQ== X-Gm-Message-State: APjAAAV351YC5UrUZuXOM5k7vVnjDsr0jY7tDdyKJ/CVj+4c13CKzwwp BbEpF+YwnC3/QuItV4Kz6wnXenBRAWqFQs8Z79I= X-Google-Smtp-Source: APXvYqzJ/CIRZSnEdfWGKpCNy2HoR/a2+0EEuZgVpK7pO7gHzaSKEk6OgM0SGRRujOy5OoEv+ajEqevmjbBp8sWT2hI= X-Received: by 2002:a05:6638:cf:: with SMTP id w15mr42722545jao.136.1564508527540; Tue, 30 Jul 2019 10:42:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Tue, 30 Jul 2019 19:41:56 +0200 Message-ID: Subject: =?UTF-8?Q?Re=3A_A_serious_bug_in_execution_=E2=80=93_where_to_debug=3F?= To: Sebastian Gniazdowski Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 30, 2019 at 7:01 PM Sebastian Gniazdowski 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 =E2=80=93 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/f14497918f0a70955f6d227d1e002= ad2a3f94cc8/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.