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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 746 invoked from network); 25 Aug 2021 14:52:37 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Aug 2021 14:52:37 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1629903157; b=H6ZiYMc/s7LuFc69nt64fNzPZBKDcgYlfRSW1FRY7OX/Mi6QE09wnqaMiDDe/DdDB0rXatswnX qUEuN3+OtUIrEWV8844ZXXCwV/BbPOamUmsRyrPqW/pvnHg71xG2vF+ybFDF9LYwmBGXhtL8om Po8fH45GrhpwAukip5urtGwgTha/vOi05iveaUAsgfphzF8aU2EUQcDlHisMK/cZB4qRN9bZOu 51jqDQviMAsR3KZGV968osmgC5pddIquHTHSGmSmsKl9aoqgPmHwt1C8t3yDA59pxU6g7AN8pq YE3dETm6MfUoSoLNIF7o5lYLst449MioESMeBane3rW8kQ==; 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=1629903157; bh=HgDK/xIOhiwZVfg/kE307TiG67n+4I6SxeR7wdBX2Uw=; 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=GjqLccDvs0GWC/l6c7D1Ykby95Rs4PXQ+DI2nmCrMq8zOa/lKtnvqp+WTwSEAFCpluj8JZ8vT1 YUjkXlvv/looTeyuGpcsBN8PYjhLvaw68r2vSjyBLt4cRWVu47TPmb/O2tVg5mlkpb9qRugkIi 0wCPSJ7R4x/cPn5a1Yx7/Z9M75jHlxULvwMHx8dx5lmp2EhcEFLpzG3EY02v5Fs68gnrWR/aEw yySXxjtIQ4uq1gLPX5uY4AJ/30yRKMP6e7Yn8WGIn00fvSdxOcQMUiDssJFI7vOBmBJSCtqOmq 107kneyVUrMWFZsMMIo17gk3907fgNoTTO/UrngF5VKb7w==; 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=q0fpZ01FHdQXYGOBtquFNEriqO23SJ19GgiYndAw6r4=; b=LRSe++94Vo5AfS8UAP7p3kreUS 45BVLJGye5xCTQM6TcAFvvqaPe553P0c2gwaYS75mciwIjQuzjIsVDCwaOKLz2n7ZgZhBkb8ejLK0 vGXekITlOBz7J1kCIzjvo3m/dOhCG6K3aGCkZbpc7M3OPPrUzrmgPjadgcEmQkehJgBwct75hl3en m3Xdq6+8qDijRrDbk+0Lku1Qura7P+P1ZtRIHPIKM+W5AHv2tCO3j77eCMmOqV0wtFxw0zZsVYTqx NVkTOZzDhRIJYCoTq0VRvrFkPNj6cdzl/0psTygW+rRhjmr+HvCO+ubyZYuXW9nn46wfZSDXuuz/s Q7ojNGHw==; Received: from authenticated user by zero.zsh.org with local id 1mIuGa-000Hcu-SV; Wed, 25 Aug 2021 14:52:36 +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]:36424) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1mIuFa-000Gu0-K9; Wed, 25 Aug 2021 14:51:35 +0000 Received: from [212.54.57.81] (helo=smtp2.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1mIuFZ-00010n-J6 for zsh-users@zsh.org; Wed, 25 Aug 2021 16:51:33 +0200 Received: from oxbe8.tb.ukmail.iss.as9143.net ([172.25.160.139]) by smtp2.tb.ukmail.iss.as9143.net with ESMTP id IuFZmjBD5Z49GIuFZmUGmC; Wed, 25 Aug 2021 16:51:33 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-users@zsh.org X-SourceIP: 172.25.160.139 X-CNFS-Analysis: v=2.4 cv=XZHqcK15 c=1 sm=1 tr=0 ts=612658f5 cx=a_exe a=pgSR3NrKiwmx/6vnWRL19w==:117 a=sfM75MaK4YAA:10 a=IkcTkHD0fZMA:10 a=2y5beTJ5bSgA:10 a=pGLkceISAAAA:8 a=UddJy41H0yI53iUxyuQA: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=1629903093; bh=HgDK/xIOhiwZVfg/kE307TiG67n+4I6SxeR7wdBX2Uw=; h=Date:From:To:In-Reply-To:References:Subject; b=k0H++ZZCk1K2mVHWxCrROH8VkcFkvX/4Kldj79dI5jdO2YQlG4DLds5wCpaJG2QgB Wa5w9L7fXKb7Mz84Xs7A++/O8V2RDD7g4qiI9LL3gtzlrXDL+Mt4ewCeRUsJRJjKKG Dkvrss0I24XmFUHlnQA3DVITiIErdJ4jbetKJddwbfZ7zUgBaYx0V4FzVTG9JCrhQa zf71nsO0catKd0YzowCk0g5hdW4fcN90//+18U1ZkLKbvwlbDIwAYfaegdKzsQjVfv isxX0Zs3v+0LtDj7WeUAjCLwLtVxL3PWrWBZ+xsyUl2K3zvg1e5Is2DkTUJtkQSQTu 8VSTsHno6wMsQ== Date: Wed, 25 Aug 2021 15:51:33 +0100 (BST) From: Peter Stephenson To: Zsh MailingList Message-ID: <1341943777.1148584.1629903093282@mail2.virginmedia.com> In-Reply-To: References: Subject: Re: Can $PATH look into sub-folders? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev72 X-Originating-IP: 165.225.81.118 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfBZ90BU8jJOlS9fm1+VVKzz8XyUBbiM6EHWWJp0pB0ZCZZsk3Ngks3sni8giYshCGRU7WUhOSgCeDVgobjIwXo4DZ9y+l+sDhi6jHmIz8p2lJR8CcH7I zWlOi3HzNmUggFvc4XVHcdVtSHh5pxvt5Y2kTIeW4ABLpSWZ2jtie8QDbVSmSgx5CjAJtr64zxDno9nSBul5gVjqR6iGfaOcAj+/K9b0igQet6/UzxCT5PKH X-Seq: 26977 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 25 August 2021 at 15:17 TJ Luoma wrote: > It is my understanding the zsh (and others) do not usually look into > sub-folders of $PATH for commands. >=20 > For example, if /usr/local/bin/ is in my $PATH and I have a folder > /usr/local/bin/private/ then zsh would not =E2=80=98see=E2=80=99 any scri= pts/utilities/etc > that were in /usr/local/bin/private/ unless I specifically added > /usr/local/bin/private/ to my $PATH. >=20 > That seems to be my experience, at least. >=20 > My question is whether or not there is an option (a zsh-specific option i= s > fine) which would tell zsh to include sub-folders of $PATH folders withou= t > having to explicitly add them all to $PATH. The only choices I can see are: Firstly, set the PATH_DIRS option and refer to them by relative path, i.e. private/... Secondly, use recursive globbing to add the directories to path, so at least you don't need to do that explicitly. In other words, path+=3D(/usr/local/bin/**/*(/)) pws