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=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13880 invoked from network); 5 Jul 2020 17:47:46 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 5 Jul 2020 17:47:46 -0000 Received: (qmail 3035 invoked by alias); 5 Jul 2020 17:47:34 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: Sender: zsh-workers@zsh.org X-Seq: 46190 Received: (qmail 16464 invoked by uid 1010); 5 Jul 2020 17:47:34 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm1-f65.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25863. spamassassin: 3.4.4. Clear:RC:0(209.85.128.65):SA:0(-1.8/5.0):. Processed in 1.144827 secs); 05 Jul 2020 17:47:34 -0000 X-Envelope-From: guidocella91@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.128.65 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition; bh=8D/xIyd511TykZ4Z1XwvZZ7ymVsy/bAE/xsZnS7Gxns=; b=r86FWXeNosnBU4pPUe4Ib/flytR+fc0VjGf/ylZejmOZq2CheV/LIHgeMfz7emC/CW c5RgaZ/wRU70+4X4SuYDgBmwxAliJmozqFwiEOYuC8OmQWyXoFg2izb9zUT2xzzwjsol tyyhs53DqHtKVCyRrTiiuFSSF0E4BN6kwu9YYXJ8DTlleSYb/ijesfqwFUetnlhqyXPp FTOvRFyWDYzutF+AFX5ArOZKy5lWqualb2LB4NOeP3bvCm+WSuqK+XKhhKPMtF0MKsZg B+GF3uW3j9G+n8TImMzNfgofKHeya3qPX5fiHaqdDCxiE67xcS4woytx5B9PnEF3b+Zs rGdQ== X-Gm-Message-State: AOAM533/ic3vimRo3C7P2gSfUwz3UezuZoDwnlhbRfvsplwAb3Dk+1aE cqsMvXtijwug+IQwHOlK2BCO1UF9 X-Google-Smtp-Source: ABdhPJw5dsk4xYA7dto5dTj1WO+XVgPlGf9vUKMz1HJLhxvt3FINZzf5+MahX/c6Axv6FKtLIX8SIg== X-Received: by 2002:a1c:a986:: with SMTP id s128mr48682567wme.121.1593971220225; Sun, 05 Jul 2020 10:47:00 -0700 (PDT) Date: Sun, 5 Jul 2020 19:46:42 +0200 From: Guido Cella To: zsh-workers@zsh.org Subject: [Bug] Doubled completions with suffix aliases and grouping Message-ID: <20200705174642.b2frcpxiuscbj27r@aegis.localdomain> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline [Bug] Doubled completions with suffix aliases and grouping When completion grouping is enabled and a directory contains only regular files whose suffixes have aliases defined, file completions are listed twice. This seems to be caused by the fact that when there are no executables or directories to complete, zsh completes every file in the directory (grouped as "executable file"), and only later adds files that match suffix aliases. This can be reproduced with: alias -s txt=$EDITOR autoload compinit compinit zstyle ':completion:*' group-name '' zstyle ':completion:*:descriptions' format '%F{yellow}%B%d%b%f' mkdir /tmp/foo cd /tmp/foo : >{1..9}.txt ./