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 E562321FE2 for ; Wed, 1 May 2024 10:39:10 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1714552750; b=CYEICwknPrUUJgT+Ym4Wpx39AEfbeHMNOYYxNqaXcdl4S+JgfQh/v+UFG66TDRtC3fxy2pE5/l jCKiqjrAcyNKKacRsDso2eaQH56hAKHNkEpqAT3kjJnNSQrrwzl2gPL8BJM0rj5gpryuOsmRHF bN35RN55vYXSFSMbCE/Dt18eiI8V54d/EY6KELSKQxMgwOqT2/xSMYt/n3VUUoyhtzn78w4Qil f567i268eJEAoERdaR2Q9XbdsdW4WK/oNtMDxUw59EKF7GcyQh2iB/yAHZJspCP0+iv0hh3gOQ faCfrTWqdQ3T73YqREEin4+8/guAi8WG2qselt1Q4UEKaQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (csmtpq1-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.35; 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=1714552750; bh=N/I0dTpjrBr2xbNKf9nOMWgeZvABREJ/8GLrHx5duS4=; 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=H0ZkUyuqMQkrVU/Si8iz/RYkmPAoLOkFyekQtc+Zd6Mx5coBN3Z4T/JgaxddGTX/ZUIsqpeCsj ryKYNEps8oFM+BHFbePBWUc/HgvS7zAmck/mgO2hbMFG/tv5vv+Ljb13OuT6IjhFRLuDEq8OlN 47lWcfs3MBo6PXwZen9916QedYPjSUkQhYj1hyFY+q6xlUwc0MuRy6M/wPVlhhD69qHm74GJ0I IqIhHDcjv5v3okgex3vhsT4QcJDQj+wS3YwnPurZUkeZm5XYuuhCwJTS5BRl/N9uzjMalVjNVQ nv1lk1fDDixggElr3DKEs7zuY/bv1Ulv+fcgQ28masm22A==; 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=oerWUwuj/YLjB6+VoaQBRC4xaePbKO/qnt0LE3W9e80=; b=hO/g4nExubeMSCkubRNksONnuI JfzrF+kbKMzgUPTZ8/Af1+lP7hkoWtEpQd8LIwEtGgSnW3iDlYYtHpvTglxaCBxiExQeBBgH37iJG dC5ZXafLHteFsWatlGuGeGBuqd0jQG+V1CU9cl7cgvf23p50nyPATqB00nfHNCyQNlJsABbSLNbB/ D+IkzcW4+XzJxZQ/51X7HdtMoVYVlVswtKEq1kxe/UaQKk7zu1kKaziVC3XLEWdb0XwFIQTGQxo3I KTa2TycMwVXpS8julUicwLguW5ns2kITcDeclqrPSGAoxhFVrw9U8xg3uMT1n7oQOSvpBVop8yOj1 ZCdjUAMQ==; Received: by zero.zsh.org with local id 1s25Ub-000Brj-Ut; Wed, 01 May 2024 08:39:10 +0000 Authentication-Results: zsh.org; iprev=pass (csmtpq1-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.35; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from csmtpq1-prd-nl1-vmo.edge.unified.services ([84.116.50.35]:26125) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1s25UI-000BXi-Te; Wed, 01 May 2024 08:38:52 +0000 Received: from oxsmtp2-prd-nl1-vmo.nl1.unified.services ([100.107.83.137]) by csmtpq1-prd-nl1-vmo.edge.unified.services with esmtp (Exim 4.93) (envelope-from ) id 1s25UG-0079XF-8n for zsh-workers@zsh.org; Wed, 01 May 2024 10:38:48 +0200 Received: from oxbe8-prd-nl1-vmo.nl1.unified.services ([100.107.83.39]) by oxsmtp2-prd-nl1-vmo.nl1.unified.services with ESMTP id 25UGslZmk6o9325UGsJ5rr; Wed, 01 May 2024 10:38:48 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 100.107.83.39 X-CNFS-Analysis: v=2.4 cv=dKltm/Zb c=1 sm=1 tr=0 ts=6631ff98 cx=a_exe a=zePz/vicIvybvxPZ7mZqPg==:117 a=IvlwODmuRu4A:10 a=IkcTkHD0fZMA:10 a=QINTdmfWAAAA:8 a=ycuKSWHXUEp4bXgJik0A: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=1714552728; bh=N/I0dTpjrBr2xbNKf9nOMWgeZvABREJ/8GLrHx5duS4=; h=Date:From:To:In-Reply-To:References:Subject; b=k9DkKd3jo3lHxU9bLUNiSaQKlhKKvZOzKFKNOLfQaJ+RUVS0EZ4k2djiNIxakRudh Hcd7RT/w09RqAtymweUldbTQ50gfPk9cEWovcaGlvFohMOPiIdCFFTwsweBZfXe451 2WBZxt8Foqw5kVWUT9iFe5YY0zokP12v4xjwIyyz7LJ98cNfBg5zbFy+uG04RCmdI/ eBg1Gs3+PlUR6Bg6UzOI5kUMyowQcmlqQ3BKh1kcOQWnGSZESKigq3UYatUS9HHRKl onh9q4vEa0AmwA071tl+wXbyUBaql0eUZGdMwcD5MvVBSr7JJRpFvJBDDYq2jebobF o+6h6MoRqHBLg== Date: Wed, 1 May 2024 09:38:48 +0100 (BST) From: Peter Stephenson To: Alan Wagner-Krankel , zsh-workers@zsh.org Message-ID: <1388695268.1045346.1714552728211@mail.virginmedia.com> In-Reply-To: References: 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: MS4xfCxigW5RpbLnOuzRmKSjHsvHqygFizIQhuy0p6P9vaPu5iyY9uLgX0rCAWoEUg0a8Oerfisk9hpMgNEdYDlRdkScdRGABVSNulvdh4tmEyU2vP8B02mz Wl+AyDVh875bWQVpyP2MQgXirpzXbgIzrKuNV99T3KcbrKRbxTT9K/+pHnMgoLDxcQhDVqWomA1q8oid4g1xmEJPdkA3ZpDxpou0X8g1zZNmLFqJaOOPQQOI WE9GG0CiPXP0IfIcDKZrag== X-Seq: 52912 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 01/05/2024 08:55 BST Alan Wagner-Krankel wrote: > Thanks - I did miss that **/ wasn't supported in conditional expressions. > > I wonder if there might be some value in making that explicit in the > documentation, possibly by changing the paragraph you referenced to > something like this: > > Pattern metacharacters are active for the pattern arguments. The patterns > are the same as those used for filename generation, see zshexpn(1), but > there is no special behaviour of `/' nor initial dots, shorthand operators > such as **/ are not converted to their expanded forms, and glob qualifiers > are only allowed for forcing filenames to be generated as described above. > > There's a slight issue that "such as **/" implies there are many > shorthand operators; I have no idea if there are any others besides > **/ and ***/. That's a sensible suggestion, how about this? Please do comment further. pws diff --git a/Doc/Zsh/cond.yo b/Doc/Zsh/cond.yo index 000e576..4216f89 100644 --- a/Doc/Zsh/cond.yo +++ b/Doc/Zsh/cond.yo @@ -241,7 +241,10 @@ 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 (*/), in which the tt(*) may match one or more `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)',