From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1052 invoked by alias); 21 Mar 2016 22:54:02 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38201 Received: (qmail 960 invoked from network); 21 Mar 2016 22:54:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=dXMF/I7Ebi8DJqXhOVXPrlyZqW0evyYinFlKbsHfLuk=; b=MrenpO5GOkQzj9nIGvLCJ9wKh4P7Aqld6pOuW5F9WY+YSdjwIZQ/JeYWxf2PyuV/mJ GIGbQc42NoF7eFPcnWPhJirBGitJJ5EAdj4EVDHJ6W0dffaoMlmJ5UK9uXnkJxj+HS0f IQIH4TrcH2tL0pCbtu1r/GKM94QeIO2z/grkSIRFb6LkmErCLa9KEhOPpP7kl5EdrPrX 5zlvwGL8SUPMGwNwTPL0/i78OcytcOhEDZ0t5IBwsWRJstZnvYl3Lu+xoBDPLHtHJGnz uaQGrAKWH6gtnFTF411s11AEkkGHOwzsrf3K8GTmHSvi3FywSSLnyiYMmQp7WzcZZa2C Si5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=dXMF/I7Ebi8DJqXhOVXPrlyZqW0evyYinFlKbsHfLuk=; b=kILACxWf5D+JvxuzRgVYDeghE1J9lw2VA1DoDh0axsniB/qc6qnXQkgWJjSG9RVLuR himAwp7+r4sPVXWt6LJtP8Weu9/AXRDQHKXede0JMnR2S4icZet2Owd2DvpNuwmjd1pU qVHXPS4JRE7Gux3PzRufBdxhuCb05sERq2P/rsM5PZH/xQCo9jjxQoa2eFZwMqi7oR9i wb3BL8Sl6G4Zqtt3IvTBX4A7/9vl7L/CXvaPkiqr1gkeTOtvHzQk9V4aIOo9ncetAJm4 PDCVnrQHNNl4W5F5yGfrZxiZvdCEg3JM10dqYyCKkSbdZjmJ07ZtgsYvNt8Fo+xuMOFZ 71lg== X-Gm-Message-State: AD7BkJImIRJ0qchhuMU7ht+8hYd4Rz+ZPYhGJjhfYQXXLDOsJrkFwIItrHx/AmVemr3Iuw== X-Received: by 10.98.34.200 with SMTP id p69mr42710361pfj.114.1458600835580; Mon, 21 Mar 2016 15:53:55 -0700 (PDT) From: Bart Schaefer Message-Id: <160321155421.ZM27019@torch.brasslantern.com> Date: Mon, 21 Mar 2016 15:54:21 -0700 In-Reply-To: <20160321183649.4fd4d72a@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "PATCH: short-circuiting glob exclusion operator" (Mar 21, 6:36pm) References: <20160321183649.4fd4d72a@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "Zsh Hackers' List" Subject: Re: PATCH: short-circuiting glob exclusion operator MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 21, 6:36pm, Peter Stephenson wrote: } } This is a request for comments for now. I'm not yet entirely sure the } pattern syntax with two tildes isn't going to cause problems (though I } don't see what they would be), or that I've identified all the side } effects that can happen. As Mikael has already pointed out, files with names ending in a tilde followed by an exclusion pattern may cause trouble with this. (Incidentally, you already can't use nameddirs or ~/ in exclusions, so that's not at issue.) } As an ultra brief summary, ~~ in a glob introduces a pattern that will } prune directories on the way through in addition to acting in the normal } exclusion fashion. I don't suppose it would instead be possible to special-case something at the END of the pattern? E.g. **/*~*/foo/** where the trailing /** means to prune at whatever precedes it. I suppose that conflicts with the new GLOB_STAR_SHORT option, although ultimately it means exactly the same in context. Aside: Do we really want to add this before we've figured out the background for "Extended globbing seems to have become much slower"?