From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_SBL_CSS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 26341 invoked from network); 28 Sep 2020 16:47:23 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 Sep 2020 16:47:23 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1601311643; b=uom5k8f24Ezb3iCnKu/Fc+rRv8W1hUQpbjAuYjbvUED74xlwLB50uoZSErG/QRrtpKk1FuE8hL Lg0z4iVGT+jwFJt6AHSYZbcTtKhKnh1L6NyIrB9zxvQfGGfJUUeiKTkPkFailXkN070cz5nnu6 tQ5vK6TPzhxUJgQXwFjl0/Rh8avce5X22VOWKk8nLMZiqbpcNMYANNmZqTjPGaTv1Pcy+PRGud e9TD19MjR0ksmLoUoZXrVVDtsJdnujU8z+qmEzX2gk55SMVCb44zSx29n3E2eMyKhetNzMFnXE U6Npsd2VVxDU5jTmg+mEPZb1z1yWMf0P/knqGlD5+JKOyg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1601311643; bh=kguxISgiW0DhggOdi10CLetxjkIL6ZYgw67sxeP0kL0=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=p3nHMIRTLDv86o0CAvog1YrupRzidvc+dBP3wQCNK/78+LN0wIwdsoHOUhtfn0L3V1h/qHGRTg Sjfo8w5F4Q8axk5bbwLckj0TKL98Wl2ZeuaXXL3sEarP3fgliLFfNgLM7JChtvE/MgulXJLTo8 Hj9l7kZoIc8ILkXjF205XIh4qxviW/KD+7Ff8yVQ7fW6YEoVkrRcESYv7K4rspyNWP8oLYEjfR Fg9VX9HmTj9eg+3pta2uioTfKCNwtlnER26j7qtCScw5VRUskxFMY/Zb10DIVS7tljtGOSXsOk K/Mx5fpZq5fjcZpX0as52aDSJQtSLub6AwhVLhpO+WMIgA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=3z8EcPpyQaS2CmUEbDfE0kWAR/S6CjI14D2xKqTOp5I=; b=GClySXezWFlqfnTlFs+9s8NIH2 g/H85oRNGoUvc5R3BkyCWxP/tumvFW9Fpn9omzBPpIArsGO5uOmOsof4GLwX1pRDBi+4XpHLAOLwK eNaUQBCAL1tWNJ1Jv/21rY4hLnptehZS3NOMZXEsgirNesJUQby1y0SMCQHk9cVYy86Slf68UTw+b 5xsgBRIj/1Tv2Sm7K6IzzKXDTbmowWqnHg3LmhhBVXvApSiu188ja9ASYa51zXfsHMWXtRYJ4jAFP 9NwxwsoBNbU3dF5HJwgVG4SR6kN1Eegwlgb7jrxKVeBmegwNKMYImVR4xRHWgZ3uKaVakUi7W0BWV gTXDHqnA==; Received: from authenticated user by zero.zsh.org with local id 1kMwJ8-0007mn-Kl; Mon, 28 Sep 2020 16:47:22 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:35358) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1kMwIp-0007dK-Mx; Mon, 28 Sep 2020 16:47:04 +0000 Received: from [212.54.57.82] (helo=smtp3.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1kMwIo-00059f-Kc for zsh-workers@zsh.org; Mon, 28 Sep 2020 18:47:02 +0200 Received: from oxbe21.tb.ukmail.iss.as9143.net ([172.25.160.152]) by smtp3.tb.ukmail.iss.as9143.net with ESMTP id MwIokWvwSMVrfMwIokykFj; Mon, 28 Sep 2020 18:47:02 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.152 X-CNFS-Analysis: v=2.4 cv=Ceq2WJnl c=1 sm=1 tr=0 ts=5f721386 a=I3kh1BFku3bnNore5KbC7A==:117 a=KEnZaF_ea6UA:10 a=IkcTkHD0fZMA:10 a=DoY9bV0jb9AA:10 a=pGLkceISAAAA:8 a=phKjj7ynJTV6i1n_xBwA:9 a=QEXdDO2ut3YA:10 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1601311622; bh=kguxISgiW0DhggOdi10CLetxjkIL6ZYgw67sxeP0kL0=; h=Date:From:To:In-Reply-To:References:Subject; b=t9yCIecsKihke/o04DWJd5Fx980bV6l2akeLcuK8hIwYOqyIo40TzjBLrSKCr4Hvd Nzd4I3La7YMl6cQSOy6QxkflLKsbWZu1iOu4Hh54R7yZwc/xIibHIZtquTOF92HBfK sLawS0WGeU/bVz36utQuu/8wkAsqacxobZIUBacdhz80Bk2mGUnuw2rqHOwTB6hi1s a1NSKgFsGAop53uAHdpL4qihC7iBc+CZY24SB4MEvy8783HCAY1kRDKiVz/Lt8W4B8 fbjypEKAxsLdNwDogYmw9gfUR3apDiP4IC0a6nloO30oDVngULRulyykzAymIPA1i6 Bg7zYzU46hnFA== Date: Mon, 28 Sep 2020 17:47:02 +0100 (BST) From: Peter Stephenson To: zsh-workers@zsh.org Message-ID: <19322492.131386.1601311622569@mail2.virginmedia.com> In-Reply-To: References: <20200928153930.GA2332142@lilyforest.localdomain> Subject: Re: bad math expression error inside _pick_variant when running insert-all-matches for ls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev72 X-Originating-IP: 165.225.81.56 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfNvMh4IFIf3LuBKdVtd3KQHQtMTVPQYvxcXUdxU5Rv38qPh8ESL+QTjKiKU4sVLahLfLyLoBPh6ySWBQo0D2WoGbj18cyo9luVzyRS1NC8FBP4uQivqK bZ4QNX0RgENpSNbza++/YpPChmIGV1oZiCnICD9qvTFcSjdESl7v8uhq6W5qLUCuMNUhHreIOGj3ufEWgfsv1r1hMr7G0E5DygT3Z7QpSIzGGDLFt9M2zk2e X-Seq: 47407 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: > On 28 September 2020 at 17:30 Mikael Magnusson wrote: > On 9/28/20, lilydjwg wrote: > > bindkey '^Xi' insert-all-matches > > > > And then type: > > > > ls ^Xi > > > > There is an error message: > > > > _pick_variant:19: bad math expression: operand expected at `|| 0 ) ' > > > > I'm using zsh 5.8 on Arch Linux. > > You should either complain to the person who wrote insert-all-matches, > or provide the code here, otherwise nobody has any chance to guess > what's wrong. While I was thinking that, I suspect that, whatever's causing this, changing $precommands[(I)builtin] on that line to ${precommands[(I)builtin]:-0]} would probably make it go away... pws