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,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 17506 invoked from network); 11 May 2022 11:19:21 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 May 2022 11:19:21 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1652267961; b=iY+RqPxdpikpKxPpr7Im88/7UDkLztP4mWBE/OFIeFVP1gBuYYVIPjKv1n+lKsNczUlaWW2KjW 6O7NLoW88TZQNQzblfK/qZuL8dsNWe3IRFcVbnEfsx86CQ30t7hc3NksyDsjp2fVsaHe3Yn2cx zLEhMQalGReuwOaCpAH5MKlF7vDXKvkkJtUZ8FJICt2DpXRY4vTCTpFv4QPwbIon7/f+8dI4AX 8FVKf+MNaNiANMxZmSHUhhtCjtMoBQ+antwQaAx7p4jHOo5SInvr7L/PcHuSzWjkLAUHVdOyWW Yp9hbIbTKF02nYBI50y/5Z7ACKMRu8R/vRQ9tH92wshkrg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1652267961; bh=W3uFFPuOsCs7rHsa6o+URSnXsN/iIwrYwH9VxKEuKjk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=dV2TkvkO5oYEQHP5kqaGjz8omOO8IrMoWClHkw5hZFtw7OHO8juqK57UnotTmcZFGxQlFaoQZw xL9TC3xXA0/6/9J6UT/htxDyZd+Y/eiExVXgMDKoPd8PdT5jhz7ey8/4nyvuJtT3/i2dpIGmA0 JXIzx3vyet6R/KhYq4YEyEgLTzGk6VcrHSt0y3cY7/AvSoUW43bRVjvnPXRLKdxk8lg8nc0So8 Rub5WjQOpx+HzHpcuPvH4bMM/nDxjmMZ5y4LpjBMZB8H4q7GhgePDxhiaDnkf9n/yi1pctbt2Z Et8SpXMv5UwSeRz0gHSmigbSxj+VqK09PjBWHW7+M2sLzg==; 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-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=W3uFFPuOsCs7rHsa6o+URSnXsN/iIwrYwH9VxKEuKjk=; b=h3f7iN5kEYomo4Grnbd5LD32O4 GZFMonzeaDX5DK1mwVFPhwqpVultAPYJYe6+CpwcB4ZeBZg5gdS+ncZr1kGij/xxc0QpJhQCv0t37 lUVkcXCqIfHLF1//IIMkqiK9f0ahaljC7G5Wb34fBtDa/le0inApdiFDTx5vT1+aF01y7m/PZvJbd mQED0ut7GD7DaxZdnItUgdmDJhzEoIZABtddqG2JQJw+kY9lq4ibIJfVY7jUApISJqHCcF89HeeF9 M6tTypmBtZGqU3/rhC5XQtGUyRpWtdjU5gC3o3chnQZ4l+BfveA95rCoBhhncwvby9Qv/7Hh7puBb 1YJvXd1g==; Received: from authenticated user by zero.zsh.org with local id 1nokNE-000Gdo-QE; Wed, 11 May 2022 11:19:20 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:39796) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nokMi-000GL4-D3; Wed, 11 May 2022 11:18:49 +0000 Received: from [212.54.57.82] (helo=smtp3.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1) (envelope-from ) id 1nokMh-00007A-SV for zsh-workers@zsh.org; Wed, 11 May 2022 13:18:48 +0200 Received: from oxbe16.tb.ukmail.iss.as9143.net ([172.25.160.147]) by smtp3.tb.ukmail.iss.as9143.net with ESMTP id okMhnSuwPmkHaokMhnerUZ; Wed, 11 May 2022 13:18:47 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.147 X-CNFS-Analysis: v=2.4 cv=OYGLszfY c=1 sm=1 tr=0 ts=627b9b97 cx=a_exe a=8o1wE8L0/p9P1PBsv+/Cew==:117 a=I_Av47A-8eYA:10 a=IkcTkHD0fZMA:10 a=vinPr5In5y8A:10 a=pGLkceISAAAA:8 a=YMXLuFmd-onTZFfgCRoA:9 a=QEXdDO2ut3YA:10 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1652267927; bh=W3uFFPuOsCs7rHsa6o+URSnXsN/iIwrYwH9VxKEuKjk=; h=Date:From:To:In-Reply-To:References:Subject; b=DrLeLFVsBJVb2A1R6s0ZYm0pIucp6axfzvzK6tennCkQcmN85RzU9xMCc/Pb1d/H2 dnHks6Btv3ojgi5unETKF9T5pi3Y40SLEWy60mRZobSZKRe3C4vb81GLEL7Z4i7o5Y 5c2w5SN4itpWVzgst6i7eZ58VAN7nuSxx9fGlL6Y3q+xUGaANGeB+Jo9sIZcwxZVnW avMRiIwl+b61bk3shw2PMD0s6mZUp7AXtHZ3yeiw3OvR2gv6fQyTIx/DPpA55RpnMN UTrSfpedcKouIvLKenpziScnxQtL147nhDXTerYumGkAF4r2CUmd0zv9QGYd1IDZpm BnH/shnA7N8Fg== Date: Wed, 11 May 2022 12:18:47 +0100 (BST) From: Peter Stephenson To: Zsh hackers list Message-ID: <2085138709.292906.1652267927454@mail2.virginmedia.com> In-Reply-To: References: Subject: Re: [PATCH] Don't complete dirs as suffix aliases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev72 X-Originating-IP: 165.225.17.146 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfHzLKEHF3jKY6HEp+8sortNLlH9RVTzfQldkFXUCm/MzVc57j5NyvO6LqsOG/m8bvdZRwJqXJmbMZWaeI4GJWuSgkf5NRQxY40h9hT3l8wH2ufGAxii1 qi1duc8UkXi65cdYoGmZk5dosuuZCi5IqKf2kzVGLzYB1qyH+rxru5/elZjpo3Af3e7TnbqWqvCBuki943SzFiaWhrILk0Jc2cakCPhlbUI1N498kL/P08BR X-Seq: 50205 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: > On 11 May 2022 at 11:44 Marlon Richert wrote: > On Wed, May 11, 2022 at 11:03 AM Mikael Magnusson wrote: > > > > On 5/11/22, Marlon Richert wrote: > > > ...because suffix aliases don't work with directories. > > > > In what sense do they not work? > > % zsh -f > % alias -s marlon=echo > % mkdir hello.marlon > % hello.marlon > zsh: command not found: hello.marlon So I think you need to change the line you added to [[ -o autocd ]] || pat+='(#q^/)' Not a particularly obvious use case, but presumably best not to break it. pws