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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18378 invoked from network); 14 Jun 2021 08:30:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Jun 2021 08:30:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623659441; b=TW+2KjYO9glYTwBfhitaRa4jxVMgI2N984XVfRtS6ZSxBIHEV4w+Voe4ONxnWJcf93BMhsrPVl ySLPFZvcXRmQNR2/PKeoYicSX7dS/yxjHM5ncTHdKSAHXxq+eny+F7U0UIJcVI6Pd9roeHSeF5 2KDfTsjhSlxUJOR1+TRw1UDKCHAb5yAKKJhX3dR/7ZD2j8kiPNnWN6mLKMcyOwjn7eWqs9ipZJ L0u9S16JJatfpqLq4lMosAQmTDMRKgz7et4ObSTsWH84T6X7EhHWRuqvX702SXVFDt6DXAhxxR fpT1fz68WbRygApOONAxXSszX1BrzUBdXak+gpDzluy3Kw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f42.google.com) smtp.remote-ip=209.85.167.42; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1623659441; bh=e3rHJK119XzMBe/qpkrtFg8JI+f5SWCIZH130xeQXB8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=QdfIXoRvg5PyjJD5hg5wQEk/U5fLXwEGCrqrDq+yF3rFd2YImLxj41xjRc5oOgHwPdzkCX2l0l uvPQc+WWENNL9qusyOdVGf9JoPyZG3YJ35zlOOefnUQhv3EfadDIZOoPAugjIgH3+KAEHOYxzT bABSPQeYxmN6Tw7d/InvGewDhtCiIXSWBvrxJQLCr8U/MgVtlDeQMQv02yFVSkRIHDcP/f4/x1 GkPZ+eApGQadjIUcpFghzkC3KenzAO8Iq8djgXSgMJpQPxNt0mNwazNybUbYvsSYZUoIcE1Nuq vgcsglEO+e7M/kRqHlffsc6/M+nW5e8tx7uXMDGqs2+P0A==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=KFDpWt7XI/vr2tPtfvfMNAW1c2DJYdZ7+VkCBEXficA=; b=PHNgvUCKTheg3I0YjqN6R7sGif yaG3CIxhRBNYC3DF+zCa3pj+Bo8OTqZSZ+rweXTTg+DV70ANpshUMlMFlerLHm/s454fl7+ItbOj3 cJHTdPDv9k+xoo5sicsky4Tqtp3bii5HJKTXkHrGjss53hxlzDoHsHSw2VlLqr61U0gLaMJbauRaP F7lIqsUWBEg+xaKSbLyTVstwlJk8Dp2MCgaIZ/JaiNsK8GVgq+7Euay9zn/y6vITAJ7tx+4MbB49C nGCnJtD2VIo7LPTYpMOeNJ+dW1UqfgtbrTre2jxBtcN8I6YY4KD73yUfJCpgxCwT1b679G45KLwtz tXF5Yoog==; Received: from authenticated user by zero.zsh.org with local id 1lshzU-000ChO-NV; Mon, 14 Jun 2021 08:30:40 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f42.google.com) smtp.remote-ip=209.85.167.42; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f42.google.com ([209.85.167.42]:42746) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lshy6-000CMy-1w; Mon, 14 Jun 2021 08:29:14 +0000 Received: by mail-lf1-f42.google.com with SMTP id j2so19616785lfg.9; Mon, 14 Jun 2021 01:29:13 -0700 (PDT) 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=KFDpWt7XI/vr2tPtfvfMNAW1c2DJYdZ7+VkCBEXficA=; b=kIU7XV4v18kcyNy/RbZCABS7CfQYESO0NIMsphKx+oqfM4b3uz1cg8KlD8bPNBC3/2 oaqP/YetdVZH4oMqzum4ZCTmHDBxyWxMVSitFZbCcZhYlESK+9IyGKYrNvmPyq/MOV0P b6uZ+2oH+DRFyw6Kc1FPAVbzztl0LkwfO58PmmzvXuw6AOAE25soE1469+sqLjiyFXxX 9jUKmseX3b2k6SrJRh3Q+Mu7ZSx8vS5GGpUnaFhcSfR0tGjmviwmNh5K4rc5XeK3IHZT 3vgcIrSauSXZ1Lt9AVNE4kCmi7mil/ygnUkhJ5Foz7J6sYOuK6Z7dvCgzQ5y0yU1gGZN 8N9g== 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; bh=KFDpWt7XI/vr2tPtfvfMNAW1c2DJYdZ7+VkCBEXficA=; b=EEMNs5+giKsAfHzeMZxAxPtLcwUiYCC/ViWxpxfCF5L1qjmpJI7FEuA9BA4SrCZ9p/ coTZE4C7PYYjTgXT0BjXxI/jvV62qBcODrJKsfva+J2j1yYGJAMOCrq7jbHUd0coWbKn HaWstdt6oNqiZiPuf/Eh+LxggBhRG8IfwjCuDfDPqb0rMR54TL8L1Ix1ynGLlpJBueL4 EB4nMYmy+1/zfJs2cG6bZ7CeMoNqMrFH+7u8l/jrbeLkZ+kDoNC4GXn47cUDolqmwf2Y vcnJcShrZztFTRhUyvULvpyJAk1EoQkWxHLLc720tPLyokDw13WlWdPVRRM22UqXICWl pXvg== X-Gm-Message-State: AOAM531FHRREjEwEZO/UVoBdY//E9aJC+YaX1WncBJTjiGnF4y1WzTbI 63QLzR21zKRxHzwvZDyFZq0CUdfaO+EYYYfxAFkXj2X9 X-Google-Smtp-Source: ABdhPJwTnyTeF81Jc5A1OE5s+sUXQG3f8Yr42JIPZXM8ceQQiuJunnrnfBeJAuyFgIFEBeIk7E3kwOJ12rpI4w4HTSI= X-Received: by 2002:ac2:4e69:: with SMTP id y9mr11160205lfs.593.1623659352934; Mon, 14 Jun 2021 01:29:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marlon Richert Date: Mon, 14 Jun 2021 11:28:36 +0300 Message-ID: Subject: Re: Bug in compdescribe with matcher 'b:-=+' To: Zsh hackers list Cc: Paul , Daniel Shahaf , dana , Oliver Kiddle , Bart Schaefer Content-Type: text/plain; charset="UTF-8" X-Seq: 49071 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: Is there anybody who could look into this? On Mon, Feb 22, 2021 at 6:31 PM Bart Schaefer wrote: > > (Was zsh-newuser-install) > > On Mon, Feb 22, 2021 at 12:14 AM Marlon Richert > wrote: > > > > On Mon, Feb 22, 2021 at 5:56 AM Paul wrote: > > > > > > https://i.imgur.com/d7polcy.png > > > > I can reproduce it with just this: > > > > autoload -Uz compinit; compinit > > zstyle ':completion:*:functions' ignored-patterns '[[:punct:]]*[[:alnum:]]*' > > zstyle ':completion:*:options' matcher 'b:-=+' > > When the matcher 'b:-=+' is present, this test at line 129 of _describe: > > +_describe:129> compdescribe -g csl2 _args _tmpm _tmpd > > which is the conditional for a "while" loop, succeeds 17 times, each > time executing > > +_describe:134> compadd -E10 -Q -M 'r:|[_-]=* r:|=*' -M 'b:-=+' > -J -default- -X option -d _tmpd -a _tmpm > > This results in 30 matches being generated, instead of the 9 when that > matcher is omitted (in which case compdescribe never succeeds). > > I believe the issue is that compdescribe ("cd_get" in > Src/Zle/computil.c) is not propagating the correct description into > _tmpd, but that's the extent of my understanding of these internals.