Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: short-circuiting glob exclusion operator
- X-seq: zsh-workers 38201
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: short-circuiting glob exclusion operator
- Date: Mon, 21 Mar 2016 15:54:21 -0700
- 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==
- In-reply-to: <20160321183649.4fd4d72a@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160321183649.4fd4d72a@pwslap01u.europe.root.pri>
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"?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author