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 4634 invoked from network); 22 Feb 2021 08:15:09 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Feb 2021 08:15:09 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613981709; b=I078FQOwGhHpFU4xElP5EqpY/rvDVEZRK1vVh3xRhyn1pq9PKtaOLvT54AFdueIDt7lAtCdzy5 9k7vV9GriYKGoKFVETuxwIXF0PXjNmQHC2InZMpV6WfWCAut9vCRHmTznJH4Fd0UviiiFoZypO lOBfwPmBy1SoYp/o5eGAX6shAC3h+dTarrPaSiWTrvcCcBzxvO+BmX7dU2vEWXB464CB23HNJc kq1xe3XbpzQWQecRnyP0+4n6WwF2WPQzGGwkgzawVsqqbxl4IHUkTjSogwI7vg68JBpjBSmebp 0Dko8iMVmfzHv3oc3VPkJPTeY8LBFGPTseys0cGymyFQsg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f173.google.com) smtp.remote-ip=209.85.208.173; 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=1613981709; bh=xAGHNbNLWAFTE5wxO952/2tF85afjKj1HtFkVSHJoKw=; 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=LFxoFDXCEj2FIcZuQve8u2SbD4pTuYg+douo+yMdXsnw3Ja6D14j3mbZKoVTG3ujbJhiTmgppa X6Vy0YK/rGc7De1WpkpZKMyEPTKUbVU/rTGVaUwca1mJ78fyz4KtP4Pdg02/4oMraotO5hQ5xi CLIEA70kTxcTMHdLpTI5D8VaAldPxtGX9iL1OQl1owI1nhUNHKiDhSzx8jeSaSI1Bym+Q0Ewh5 KiALhx3WqUhinftL6Z+fbWha1Y+O0eHDs0r4CXK5PMYKf33igkoFkNGKxTMoRcIi1u1p1yHgjv 2xkQ68Gk0lJDMRz6+oDSIOeqxYF77IFLihLQihKL/ZFAiQ==; 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=xAGHNbNLWAFTE5wxO952/2tF85afjKj1HtFkVSHJoKw=; b=iNWUYlrPI8TdzfqirC4AO0k6yS Ih8yErYs7NRcAL10MsHFoEEWBIGRZD0mg8HkqsnC+ikdo4komw2VGc3YAvsBoBlBrlAaVlRzSqZhB xJv67Fmij6LvmPO7eC2D+hl+aFGm+fhInEaON4w3L9VHT8NFMjP4MdJgPjg5+KDbG5sVDxnXVEDA6 HyYszvGhJsPX6L0MBOPrkn5h87rwTF2Y408APiOPpQ+VELp28jqlktBKNoO3wyudONPq35jvb1bKi g9FVfeAXDgrbNlm5hglZCAQ8g1EhZRQAOAI/lf2eI7pJ6v3zVhBujeeR/HB/O05UJjHF+oyHVwGee hmSikLTA==; Received: from authenticated user by zero.zsh.org with local id 1lE6Mz-000KEx-N5; Mon, 22 Feb 2021 08:15:05 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f173.google.com) smtp.remote-ip=209.85.208.173; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f173.google.com ([209.85.208.173]:45687) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lE6Mi-000K5Q-DD; Mon, 22 Feb 2021 08:14:49 +0000 Received: by mail-lj1-f173.google.com with SMTP id c8so55395303ljd.12; Mon, 22 Feb 2021 00:14:48 -0800 (PST) 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=xAGHNbNLWAFTE5wxO952/2tF85afjKj1HtFkVSHJoKw=; b=qTQS4oV6IRefDgWvUgkfXSSapYGt+YUKtcxV4UEB/LgK7OyFjSsAnJmzsJVDqtl4f5 phqInpI3bi8LWdtWGihhSz6mn7m1CgW67A9TCk+L+WzKvCqDFoUL9rQiOOxrmvupR1c9 jALnNqReuImUkNFBO2cTqDsgMACTJ5fnjasOR+55TmWnUjsDbxc6DOqjoRLwrSNi97xN AJ1UZkWBcugTROic5cklJ0XfU8gsVQfbTlbBbcPDFGS4FG21pVSoil7lO0Tz+dH958Vo uA6n+frPAcIXnlnBu5k4FIcwvOuM6RTX++K2D1QM3lf+ZvVE6g1D68hAS3PiCBrrtssi sFUg== 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=xAGHNbNLWAFTE5wxO952/2tF85afjKj1HtFkVSHJoKw=; b=YYv0fPd4eh5E1Cbu4YJBpIidDTyGAM1IAUNgYvr71+YGJpE+uKNAB+OOkqMpkJaYbJ YlSxBf/oRsYelaH3b1H1fTRi3lwnCZQxgRRlJ5+I9B0IkaDrEwEjPI9kK95sooYbZxeV iVofkAo78/gJDY7F13ypt4uBnA1WSCLcTzxG6RTqZHSDcDR8KoiSGtcb6yQHC8hCG9OD gf9+PsDNz22gEbrXTsb2fqThWqOLjZ/vuxeEwOfEBEjiutLHNIvmjD1Yb9ey9F9WI03B DN60RzezGYBkuq6+3ljxF06JH7e3Wtc254quqiBU7j+qp2XvXbOt4EFvw7ZMIpdeK9aR ZZIA== X-Gm-Message-State: AOAM532QWUWQxuqpoYUrqyJCIuYRp91LmDTO2kEJYZ5zFRc9cR53wBfe D2hIBSsL9MUXwvBiThgLL37tblBu+HfNMm80woo= X-Google-Smtp-Source: ABdhPJwx7odsNX2y3Rp0jDRftSaV79VmLU2y3VSwDJIycLJP0sBF3A0Ic3lvLI6s1Jv2OruVi7scWPt5AgyCxN8zVlM= X-Received: by 2002:a2e:9590:: with SMTP id w16mr5001570ljh.28.1613981687372; Mon, 22 Feb 2021 00:14:47 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Marlon Richert Date: Mon, 22 Feb 2021 10:14:10 +0200 Message-ID: Subject: Re: Rewrite of zsh-newuser-install To: Paul Cc: Bart Schaefer , Daniel Shahaf , dana , Oliver Kiddle , Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48090 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 Mon, Feb 22, 2021 at 5:56 AM Paul wrote: > > On Fri Feb 19, 2021 at 3:38 PM CST, Marlon Richert wrote: > > I made some more changes. Please try them out and let me know what you > > think. > > > > * https://gitlab.com/marlonrichert/zsh-sensible/-/blob/master/zshrc > > I decided to try out some of these, but there seems to be an issue with > completions, specifically when completing 'functions -': > > https://i.imgur.com/d7polcy.png > > Minimal file which reproduces this issue with 'zsh -f': > > --- > > zstyle ':completion:*:complete:*' matcher-list 'r:?|[-_]=**' > zstyle ':completion:*:functions' ignored-patterns '[[:punct:]]*[[:alnum:]]*' > zmodload zsh/complist > setopt MENU_COMPLETE > zstyle ':completion:*:default' menu yes select > autoload -Uz compinit > compinit > > # plus either of the following two lines: > zstyle ':completion:*:options' matcher 'b:-=+' > zstyle ':completion:*:options' matcher 'm:{-}={+}' > > --- > > This might be an issue with an upstream completion function, but it > should regardless be fixed before the new newusers is incorporated. I can reproduce it with just this: autoload -Uz compinit; compinit zstyle ':completion:*:functions' ignored-patterns '[[:punct:]]*[[:alnum:]]*' zstyle ':completion:*:options' matcher 'b:-=+' The bug also occurs when completing options for `autoload`, but not for any of the other commands completed by `_typeset`.