From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 153C425BF2 for ; Tue, 7 May 2024 17:09:00 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1715094540; b=ce49ETCFf/2N2zoEChwXhjY9eo29kIonaIREztxan4aLDVAEyweG82aVZ9VEThzyIkxBJlWoab PjF3I0Dpk9aApooB4O3gfZQpuiEUB75wNqpLVuYe5q8HWLkQ3r7msF1EyjtZXXYXrCHpD2gSG+ 5sPJsKfXcxAYlF13+Eqxm0w72dvJ50wSfUq/Na4WKbYD+rwLanv5G9j89nulcA2j3k2sdnpfjr Uj3zbB9JvG/xvds4PR4BT8d5b8XMxG8D+K/Rb/3Eh6ZexkSUsNltsik38kdr9v+5tc/fv+pNC0 /4ReuK2BzHbN1MUAsnkO6MPgsH/KErwWvlZR/xbFy6zj4w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (csmtpq3-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.34; 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=1715094540; bh=bEwYDYfQdl1UhXssA2T6hNqRqYqEBBkVezU6n/z8Dqs=; 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=WIiei0C+1XHEX7vyDAUHqS5J6rBAJojxUMV0ZkinasmC56hAHuaGLyVptsYs3PJ5j4JnVWPCSw p528Tt/f8GIrUIqtE7TYd1unlJbgL3tnV74sYqaSpEeeB1LhL4RHX6cXif1JEtXYF2YWGzua2o Vxdx/8Mo/dcXRaTYXVMb7lqPS8ce3VEGxnLxiFjTw5n16sA7xQnzkn9xQI/pbkdLfzrN2gvMAm S39uybmr0FFI0PMBFH2xJSOaig2IK3uX2lDT/OlQkP2Piz+3pwsJbvWUsWkCFIyTG/WuzafF/u VVq6TVbZTWcRhbtC4ye5sb9u6cWmkVQKft+bx3qb8JzQAQ==; 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=5MeaIf8hjKUAKlwsLUkNYyHvft1YjCDVmJlVNNlxg6c=; b=H2lc+wiMsYiBUBJ3LLDE1YoZay TblA0ZwHeL6c1pQnD5Y9oaT1mLY7USsixBsGx/dUKEV6qWPaG21JvXgRdEKtGgz9Q5vMGIrMI3p9T WgjqgMvFQJBj/Jna5dAlkDU0aBdP4YfWxuUq6pDU6q7Lj3A2pOMEpnxJoWx5HmMcdq9mFI9ovTKJb qKvkM4Jb1g55I+3ZetSAIuzZo6ZPwOR9PI9vNlWAnLZc7gD5EisW8+AZBIXo0SCaB6pVwTCGlHlDq a3XzHwsHqPQ8s5zy8XycZGwHzsKQNiRypFg4yR51aY0Q5VrtgklO84cRWTemmaUx8zdUkkjQ3f9vt /EwAeYCQ==; Received: by zero.zsh.org with local id 1s4MRA-000Pxv-40; Tue, 07 May 2024 15:09:00 +0000 Authentication-Results: zsh.org; iprev=pass (csmtpq3-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.34; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from csmtpq3-prd-nl1-vmo.edge.unified.services ([84.116.50.34]:53235) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1s4MQl-000Ped-Kb; Tue, 07 May 2024 15:08:43 +0000 Received: from oxsmtp3-prd-nl1-vmo.nl1.unified.services ([100.107.83.172]) by csmtpq3-prd-nl1-vmo.edge.unified.services with esmtp (Exim 4.93) (envelope-from ) id 1s4MQk-00E4ru-FQ for zsh-workers@zsh.org; Tue, 07 May 2024 17:08:34 +0200 Received: from oxbe14-prd-nl1-vmo.nl1.unified.services ([100.107.83.72]) by oxsmtp3-prd-nl1-vmo.nl1.unified.services with ESMTP id 4MQksngvPhJAx4MQksfB5S; Tue, 07 May 2024 17:08:34 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 100.107.83.72 X-CNFS-Analysis: v=2.4 cv=FOTQxPos c=1 sm=1 tr=0 ts=663a43f2 cx=a_exe a=YQry3I751P0aBfd9j3H/qQ==:117 a=IvlwODmuRu4A:10 a=IkcTkHD0fZMA:10 a=QINTdmfWAAAA:8 a=ykyhuK1vzBDkksF2xDAA:9 a=QEXdDO2ut3YA:10 a=HbQOABYz3jhqdZF7JfnK:22 a=nWWM73K5BkjHesah5aOD:22 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=1715094514; bh=bEwYDYfQdl1UhXssA2T6hNqRqYqEBBkVezU6n/z8Dqs=; h=Date:From:To:In-Reply-To:References:Subject; b=M4ASZIhIexEpxHsaRBromKER+t12iOHcKV0AMjxeA8xQ4cNNR4whnh7wKiyUy0L/U rDt2fR1g6CTCT1YYRBjM5mJyTBwQpFjv3HuFE9fa1BJ8dN4cce4YBp6F/mwj45znMk 4ZHBk6yWNzhAzf3IQYsi7C0z0VkdcBQagOLugXTMsRjT0S6p9+svxCmNmjaKJBlVlP 1XLl4H5MJixGyvZvlOx6V0YfG3H8V/6p2hhiWjH7ivRGkUgCV8C61NN45FMRfyPVN5 mo0LKgLI+hE3Z+tAjc2NtJzGz9rz2Yi0vC3jeV5ojZl+8oo/s12DKvIUh3GOsjWapt ObidShD1WNhKw== Date: Tue, 7 May 2024 16:08:34 +0100 (BST) From: Peter Stephenson To: Alan Wagner-Krankel , zsh-workers@zsh.org Message-ID: <5381099.1319055.1715094514425@mail.virginmedia.com> In-Reply-To: References: <1388695268.1045346.1714552728211@mail.virginmedia.com> Subject: Re: Inconsistent behavior with comparisons and recursive glob patterns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer X-Originating-IP: 147.161.224.196 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfG/lb0prsO6qAmZxvCmhiKvf1dP14IugFD3UWFrFVQiZbMVexoVTJhcFaZ5t5ZgOxVYVmurcDwSQE0+DEzpDnFY5rFb1hDfQAYo7g9ULQt8QG0tR/jY8 mY6quTM3q1fjkQO5Ad5+gInX0j1o8PfuZn35Upfyp8BLLbv/dW2ozbzQWWc/WPEyP1dt90kHOB1dl5Nkm0f3NpXEeyo132misiBQCW8UeBu9n544AH46MgJv eIytnA03Cx68f3ysXnLbPA== X-Seq: 52915 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 05/05/2024 07:33 BST Alan Wagner-Krankel wrote: > I think there's some risk that "... '*' may match one or more '/' > characters" could be misinterpreted as "... '*' may *only* match one > or more '/' characters". > > Maybe: > the patterns `tt(**/)' and `tt(***/)' behave the same as `tt(*/)', > i.e. as a standard wildcard tt(*) that could match any set of zero or > more characters (including `tt(/)'), followed by a `tt(/)'. Hmm, I'd perhaps limit that to only the information we wish to add to keep it simple... pws diff --git a/Doc/Zsh/cond.yo b/Doc/Zsh/cond.yo index 000e576..c58aea6 100644 --- a/Doc/Zsh/cond.yo +++ b/Doc/Zsh/cond.yo @@ -241,7 +241,11 @@ ifnzman(\ noderef(Filename Generation)\ )\ , but there is no special behaviour -of `tt(/)' nor initial dots, and no glob qualifiers are allowed. +of `tt(/)' nor initial dot, and the patterns `tt(**/)' and `tt(***/)' behave +the same as `tt(*/)', in which the `tt(*)' has its standard behaviour +but may also match further `tt(/)' characters. Also, no bare glob +qualifiers are allowed, though the form `((#q)var(...))' is allowed as +shown above. In each of the above expressions, if var(file) is of the form `tt(/dev/fd/)var(n)',