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 13253 invoked from network); 12 Aug 2021 12:04:31 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Aug 2021 12:04:31 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1628769871; b=VdvTzBXkTLjF2fFVqfeQFQx/6NlL05BnVu7AAglKmA1fLoXkW1oAHmbkMm/TVRo30HZrmhbgub KZeuVcSfp6C6EE3ONQUSc4nRgykzXtJ8SQLUkajMXGMeqbKriSnpw/SCD2JRXUw2xc7Y1/hqkZ KHDEONl8WmOCa4JrSkxP9gcIHVURvarkmU0xdIzyuicayzgHoFZORtk8hCgNj+/MJZGtE1fhbW GXXp2aC2k9A9C1XKBz0Q5mfzmGSaGrU5udnOwo+OYdAAE0QO7bXEVBi5Z19RkdIamZqeZJGFKr K5t9kvRf7ScjpKZLbn1P5x+00Sw+LxsrDuCxjMONNwX/CQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f51.google.com) smtp.remote-ip=209.85.167.51; 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-20210803; t=1628769871; bh=/tIcf8SbCJGd9EgJVnBnxEEtO26pzFf791dmsHGi3VU=; 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=PBpXenDi1u2d1inz0fWr2eGzUgFpT4k6LCU2wLLOaG/yG4WeTRmditwmOqHCNEyQvbr0XrWNZX OQ3EVxqVOTWzKgD4j/gmglTrcqrJ0pUEiibXsS/70GQyygE+IqKEqz+ccbeFRXxSio+gTZSO0m KhfWdMMiDQlDP5PMihXrw/vElDGUfnjeycxZ2EIinkgC56by6qT2o29MYpy+I7QEOQWWbO0C1l 6yuuAbaniEec+tW3lcfASjnt/WML+U7Qhn3QNTOOzg+bFnXDu81uqyoO45rY6Pz4o5hitTHpFR f4qwQ/J6mV8nREPylG1SzrF23mKLMux+FcupUqEq3ZIGZA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; 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=eLHieP5Oyvg1az8ZGSDRyvF1VkzjMvjI826YZR2Tk3U=; b=iL2kYj6kRU1li4WT3E+TzVHOax rTo5eNi0u9uLBZUBVankifgM2nBK7B0Vs+m48qiD13nIuBFd36Zzi1b8m1JFGlSXBKJUKNOy2lU9C TiHvK1BvYRjvUXDSNDGvm++aW6DCM9KenFatftoNWKNFBlUsOlc1Z1mvr7zfUuVaQsuw7fI7MaOe4 Na/l/56wC8+Ns6FP7GnrFR4lHsoD6Yo828pWJdwXCHSi29vXdRfxQvCgD5nvh6CQmQec5SNAVI2vR xmT3J+veoQwabTs42mYeE4Gk48W4M5s6hQqGebi0c923ankBpP1PI2phTpJFWbf/DpYGnPvlAhcx8 WOSBcG5A==; Received: from authenticated user by zero.zsh.org with local id 1mE9Rl-000PrL-Os; Thu, 12 Aug 2021 12:04:29 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f51.google.com) smtp.remote-ip=209.85.167.51; 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-f51.google.com ([209.85.167.51]:39853) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mE9RO-000PXX-7c; Thu, 12 Aug 2021 12:04:07 +0000 Received: by mail-lf1-f51.google.com with SMTP id t9so13038987lfc.6; Thu, 12 Aug 2021 05:04:05 -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=eLHieP5Oyvg1az8ZGSDRyvF1VkzjMvjI826YZR2Tk3U=; b=OQUxfVjm6+NxYDk9esV07OIex6pgmIvDogf4GOLcVLJAdbVNeFT0y20hMouw6QkGXz KxpKqePlliWrGQwfRjvNrokxVbFes3ncGXNaHyXAPXBIVsO/6Z4THpe0VGKeantTNI0A aBbeuxwsBvp0k/hqfUZAbwZEkuOc4jqf5WEl6wY0AwPVp2Tf/7wt+7jqxfYORteG4Gt9 PFdSroAsKfY6X05pnj/AR9qhXA4abvtF4zdv6HSaxQEaZf++x3FF6vgNNGZtYJA0Bk6x nR6juwTYkt8OrJMZUe41qCauO2mn1DNJF4nGvbz3pEoSEU2dvKvvermHTsFDT3bGSBqL 6MGg== 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=eLHieP5Oyvg1az8ZGSDRyvF1VkzjMvjI826YZR2Tk3U=; b=hBIYZuyMakjGfCBbeIUwSQYRWG7xVM9qb3w3B7kuzZ4WPgEgyLKZKlfxERZilSz2+H GNumE5p/bMUy51179ijI8Rw+lNfyNr4l9V0IZqxLBCDtqmtOJsaeX11ZqCpX8x67bKGE UKzoVJSpblcYRFv/oUz/TK+nWRhwCvWPbaT+oNRdB80bl+rwbEe2Qe/78GnhDLweQpce MmDZZSBRChO33hA4XijzqCNizNxdTPJuCMEn7iAZQAZRHa9nRPFQTSEmG29kWdnLJLKx hXB+psWTOzsMMtkFOrwf1S4Vo4Lr7CqA37KrP3hNqfnaprMLWhkWzSS/o9Ohd3jYclSm YnZg== X-Gm-Message-State: AOAM530bnMTIgK0YG+gls0SXcXEQiNFVshn2AGVaB11SnknYyBEV+x3g WiOk8DZ9yb7d7ny93o9NoDqlCpcyau+SO8yQlqCir0vUhgI= X-Google-Smtp-Source: ABdhPJy6DYKmLUgfnPl+bCYE5DXe0H8HmO2fjY54JxF9W17pxVSMtbnaL464MIW6cz3bDbY14PZYp59+FE0pU2FoDpw= X-Received: by 2002:ac2:434b:: with SMTP id o11mr2379497lfl.102.1628769844748; Thu, 12 Aug 2021 05:04:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marlon Richert Date: Thu, 12 Aug 2021 15:03:27 +0300 Message-ID: Subject: Re: Bug in compdescribe with matcher 'b:-=+' To: Zsh hackers list Cc: Jun T , =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= Content-Type: text/plain; charset="UTF-8" X-Seq: 49275 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: For future reference: This was fixed in workers 49211 (commit b4dff9a8e85802afcd52e7798176ebeb5e662da9). Thanks, Jun T! On Mon, Jun 14, 2021 at 11:28 AM Marlon Richert wrote: > > 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.