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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27486 invoked from network); 22 Feb 2021 16:32:21 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Feb 2021 16:32:21 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1614011541; b=fJHDNNPoOPHC4jtT5mul9+FIy73yu+bZJomYc2+B0j2Ra2I1nULZ2AAVexQvzrab0wYftQ0699 il5DxAdUyz1FBmQWhNuE4fkyzyJqfA/0wkfFanoFmInyR6A8/2oZ1dcgBqtI+HpDGCeO4qO1YQ X3cK3oCQupJDvTsXluQjoE5eq23nIZVbaydgXQLTuSGmWHe0+liTnBDKub45PG2vbyf7ZpxwMf GKQ3mpFzPwMObvUUwRqAD/crHbMGTZlLgLKjqRQ8GbCYD2jCK5A2eISKNggZp7myE31vy3hB1q AAiTAkkXa2DV1H1owhJxBqVfzNIDMJAzwut/yDQYQ+X7Gw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f175.google.com) smtp.remote-ip=209.85.167.175; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1614011541; bh=3d/RmHvj0uzPALhskf6kL+fcyM3GsVUv31QYTuO2M5A=; 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=neWpQeJQwZDcYCfRz5OxZLDsbwtNVHZciDthooDfGGRKGaqVQZaRDdRASdn9a4A3p+75QXoPUJ 8NFpp4LmCI1alrGgMx/Z593YuD9E32TwhNK6bY+MMWIvtLp4LJRFpGp4VdYAho2+9xwypr+FyE Hmd8nn7V+KoHRV0VYgBLS3lTw2sJUVE9pGq4kfSshb74Hv83MLQcLBLmbReoaqTWWBILLLHmxK lOThSAirPHc1/QULnroiMs4dpFR3ysI7/Oq4tNsGwwLyN/pKA4ps5jNhe3eo2JVMHg/Ic0Bqnq FZpqPgd9OKn3d8I7flG4+/fIYTQ5Z+Pxq9Oe2zDCkQGWUw==; 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=VZL11Qa3nDBY57QMYgKljsfZoNl/fouftIXxTfukp2I=; b=YNbwQwF8mhIX2mry4TbrkegQTp qX2Vm0/VaYWMtzFvhvgbrVQSlqxnoGle0ygdl7DBQl47ESlJTigj+LyptZ2M4gbCVZ2RyLuWvSMNQ 2wbCojmZnt04Xf83Uhz5ldV3SXIxZO9m+VcgU8AjKwlk8e3B08K1Ts1qCdm4e5FSXPmExlalfAJeJ qAnwDUXRruDKn6mzoza7EaL1MzpGWeJOMhjuo/3OIzAUR66MhqOSiEb1BxZehOV9pmhR0frqWYEvY Ur9SD9Im1HY+X46WbO4yGY/nSLjSCDyaHQ4X8RNSlnsjdkQzyZTo/rVnY52GC1dr11uuGhcWAkFhr 1jv8Zttw==; Received: from authenticated user by zero.zsh.org with local id 1lEE8A-00078M-SK; Mon, 22 Feb 2021 16:32:18 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f175.google.com) smtp.remote-ip=209.85.167.175; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f175.google.com ([209.85.167.175]:44218) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lEE7n-0006yy-Ew; Mon, 22 Feb 2021 16:31:57 +0000 Received: by mail-oi1-f175.google.com with SMTP id x20so2518047oie.11 for ; Mon, 22 Feb 2021 08:31:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VZL11Qa3nDBY57QMYgKljsfZoNl/fouftIXxTfukp2I=; b=LLO3pQMpY9BSJ5Af1OHt7eVolr15PYHxHxilfTqfh+Ad83K6UHqzum7Io42sNmOpMv 91fENw3G69M/dXqspxruKXyj6djWKtF0JVuEBpotPxuizINwSe8g7WrRtx5fjdnot7W/ JyO1+k5vTRh8VxHzkN8v62GwDCv3KwAhQOHq/JmfqXWFSPaipAC8RDErHedEz26cLFyM ptzvrVqN4eneslnfrqLaAsJE5LUgtzXCKeTV7qcWn3EjVMmyYv2h9P8O1JQ7ne/YjEpX 4w5+APbMj5qu9CtKCrJs+Yv1lcx7GJcYRToNAyed6yTLC7wc33828jKtY+OCZ/8OUqfR xxNQ== 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=VZL11Qa3nDBY57QMYgKljsfZoNl/fouftIXxTfukp2I=; b=P3smZ2k/X//SfeYahdCVS3AYFKmeqVsW4RSxDwRKm1l2lX3cbhpgBYcWBJElRx97tW ceAMSLvwT5sRyQIMovBWtWAmS0nRbCdgz+5SOXOYZInaaVqzct0ytZvSpMmslW3lAdvk ZETCnxcrAF7hFaY5jxPT/53T2uedQux7dTnUaUyQhQxDknmPbAk65Pjl5XLjIAgOc/5D uXUH6dZOXdYTRtFfnLMVVvbMKQ6GVxDbdsaCmbFxrNBW+eOW9tWR09jJjodYisKY7uLS QudtSOhtkizQlAPhNhPHFb4G00wepdt4WUD4/5FDWAm5KdhGA7m/kFxZAanC3j+ib25K rKDQ== X-Gm-Message-State: AOAM53251QhKuE3QxmcmRFhBmThf2mvtMrr2/WouOkZZ1iDAUgHtUGz8 Lbx5kPmP+Mf4rWVFgbhDa1dRQBiLu914V70eMYDNmw== X-Google-Smtp-Source: ABdhPJw4lKFu53mlYfTW0/S4fxpSXdVdZwASH4BU8lA0bD/f30copgFMzPdkYmIardkWld8lZot8OH8lTTETDCpOvng= X-Received: by 2002:aca:f58e:: with SMTP id t136mr7463280oih.173.1614011513839; Mon, 22 Feb 2021 08:31:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Mon, 22 Feb 2021 08:31:42 -0800 Message-ID: Subject: Bug in compdescribe with matcher 'b:-=+' To: Marlon Richert Cc: Paul , Daniel Shahaf , dana , Oliver Kiddle , Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48091 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: (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.