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,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30659 invoked from network); 10 Apr 2022 08:18:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Apr 2022 08:18:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1649578721; b=j4mLqnefkGkznOUfG3og134Qs/QpuKvnPk3Q2WKBgwBka2k9MA+Jmg5JD4uiqOxzUPAAhtRuYZ lhQLJaYinlEB+SfsTP3lvdc+oS5+d0URrb45Cg0aPtK6UCbs0OfxOvy/N45dGXb/MC/qg5h+M1 oMdVhnjIkus5fjKuiNGAaM3EAsvXXd/OS+/mwZfvAvCTBNEixbTLwnflb615KG/Le87ymmBLux UdEBEhKzd7nkSnPUaYgfgoYFfpjTwwz+1Gj21+Touss5Ay88C2xbgI7YCRLGM7zoz2x7qvvpD1 dMeK11/k06YTwA/oP27H1XkwOqr0/X0Hr0TEvNJKnXcgkg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (pepin.polanet.pl) smtp.remote-ip=193.34.52.2; dmarc=none header.from=polanet.pl; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1649578721; bh=dqWqhFfrCYOrd2gLSzPcD3J1G6WbucT5BYV2btXt4dk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Resent-To:Resent-Message-ID:Resent-Date:Resent-From: DKIM-Signature; b=NGNHDOpQoL7ewq60LcckOBtFqtoVeZD0ES4EjlfdzM8d2xADKOClHdTamz1hDQuM4edEsZ7IGz ruYu34+7gJX6HoaEAcyv4I1GEmAoP8qJDbJxuODEIapAan8QiazB0lLilew08ZL2bfWwy2hyE5 VRgxKzN99xX8cy+VVv5yGpc4rvJ5p5g8PFc8rEHqvdpO3HsXNM+OMziD5L6KyVhrewe4ZC66Ub oSSR+Ccu0NxXC+INf9B01xDMY4+kiqHyxkZpCvESGTk4SCY1xEEBVIWcNGetyskV39/w5j7tRi KWdC3GmIzrzaS4WtqwsDaQJx3EtNCpNoDCp8aUu0DoD0pQ==; 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:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Resent-To:Resent-Message-ID: Resent-Date:Resent-From:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Sender:Resent-Cc; bh=NhwlXFAGHJPvjGEPsxcq8iuVsSAoR8HcEPnA6yHjNZk=; b=mbzX+eAh6dJMxvpvF8VM1fFpHj 9u+jj7tEeFsOKQGk/9xqgGsPGB9RvhHPiUqYQrxUIMckgTBTDdlhfsbQX4r6eMxmJMtHigyfFWWqh NENoaca7QVGyNwWG3kAi6lzYSWwgic3KIjL3OaNJPhfwA60WgaNWR6ft3uY0JCbKV2KeHCqLBDpx0 Pn2FyAcs6YeUmMHySGbwv4pIiekfnlpgztqhdrvZYqec8CbWXPf6LNPWeZB4f7NRez2G3qwaTBeWw PGCRGumexTROOHcyRObcb1H3wDURPElzwerY+hnc4MLnYGnf9zYe7Co9GVbCnFs+sSJb7/xcnTfU/ O7Oe1lag==; Received: from authenticated user by zero.zsh.org with local id 1ndSmN-000PUe-Hz; Sun, 10 Apr 2022 08:18:39 +0000 Authentication-Results: zsh.org; iprev=pass (pepin.polanet.pl) smtp.remote-ip=193.34.52.2; dmarc=none header.from=polanet.pl; arc=none Received: from pepin.polanet.pl ([193.34.52.2]:52210) by zero.zsh.org with esmtps (TLS1:DHE-RSA-AES256-SHA:256) id 1ndSlB-000Okl-8N; Sun, 10 Apr 2022 08:17:26 +0000 Resent-From: Tomasz Pala Resent-Date: Sun, 10 Apr 2022 10:17:24 +0200 Resent-Message-ID: <20220410081724.GA11073@polanet.pl> Resent-To: Zsh Users Date: Sun, 10 Apr 2022 03:04:41 +0200 From: Tomasz Pala To: Bart Schaefer Subject: Re: cd /u/N/v/ tab expansion Message-ID: <20220410010441.GA24829@polanet.pl> References: <860877fd-ec69-0323-3f2a-8a40e96e6aee@rayninfo.co.uk> <2b388cce-1412-36cd-9a90-d58f853ee830@rayninfo.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Seq: 27652 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Thu, Apr 07, 2022 at 16:11:37 -0700, Bart Schaefer wrote: >> One issue I had was that it was only offering me two of the possible 6 >> sub-directories > > If you look at my example, I was only offered libexec and local even > though there is a /usr/lib directory. But there's no file matching > "b*" in /usr/lib, so "lib" is excluded. I've stuck with this problem month ago... $ cd /e/s/s/[tab] No matches for: `directory' while $ cd /e/s/s[tab] -- note the missing '/' at the end works. $ cd /etc/s/s/i[tab] No matches for: `directory' -- I got /etc/systemd/system/input.target.wants/ there. It seems the problem is the ambiguousness of the 's'. There are other oddities: $ cd /u/s/e/s[tab] No matches for: `directory' $ ls /u/s/e/s[tab] ekg2/session-en.txt ekg2/session-pl.txt epsg_csv/stateplane.csv epsg_csv/supersession.csv while there is /usr/share/ekg2/scripts directory... $ ls /usr/src/l/drivers/n/ethernet/i[tab] No matches for: `files' or `directory' $ ls /usr/src/l/drivers/net/ethernet/i[tab] -- 'n' replaced with 'net' directory linux-4.4-4.4.14/drivers/net/ethernet/i825xx/ linux-4.4/drivers/net/ethernet/i825xx/ linux-5.9.6/drivers/net/ethernet/i825xx/ linux-4.4-4.4.14/drivers/net/ethernet/ibm/ linux-4.4/drivers/net/ethernet/ibm/ linux-5.9.6/drivers/net/ethernet/ibm/ linux-4.4-4.4.14/drivers/net/ethernet/intel/ linux-4.4/drivers/net/ethernet/intel/ linux-5.9.6/drivers/net/ethernet/intel/ $ ls /usr/src/linux-5.9.6/drivers/net/e/i/e/e[tab] No matches for: `files' or `directory' e.g. /usr/src/linux-5.9.6/drivers/net/ethernet/ibm/ehea/ehea.h existing there matches and should be presented. Simple test: $ mkdir -p a/{b1,b2}/d/{e1,e2}/g $ cd a/b/d/e/g[tab] == nothing $ cd a/b1/d/e/g[tab] == e1/g e2/g The problem was this single line: zstyle ':completion:*:*:*:*' list-suffixes yes -- Tomasz Pala