zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: PATCH: short-circuiting glob exclusion operator
Date: Sun, 10 Apr 2016 13:11:08 +0100	[thread overview]
Message-ID: <20160410131108.2cdd283d@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <160409224042.ZM25419@torch.brasslantern.com>

On Sat, 09 Apr 2016 22:40:42 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Apr 9,  8:51pm, Peter Stephenson wrote:
> I think Mikael is asking about specifying both conditions in the *same*
> glob pattern, i.e. **/*~*/foo~*/bar(Y-) such that bar directories are
> short-circuited whereas only paths ending in foo are excluded, but any
> files below a directory foo remain.  Your doc and the comments about
> treating multiple ~ as if they were | seem to imply that both foo and
> bar would be short-circuited in this example.
> 
> Of course one can still write **/*~*/foo~*/bar/* without (Y-).

Right, you have to pick one or the other meaning.

If this becomes important we could force (#e) only to match on
a complete match, which is sort of what it's for.  But I wouldn't
expect this to be a real problem.

pws


      reply	other threads:[~2016-04-10 12:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-21 18:36 Peter Stephenson
2016-03-21 20:39 ` Mikael Magnusson
2016-03-21 22:54 ` Bart Schaefer
2016-03-22  9:46   ` Peter Stephenson
2016-03-22 11:46     ` Jesper Nygårds
2016-03-23  9:56       ` Peter Stephenson
2016-03-26 15:40     ` Bart Schaefer
2016-04-07 20:10       ` Peter Stephenson
2016-04-08  3:18         ` Bart Schaefer
2016-04-09 18:22           ` Peter Stephenson
2016-04-09 19:00             ` Mikael Magnusson
2016-04-09 19:51               ` Peter Stephenson
2016-04-10  5:40                 ` Bart Schaefer
2016-04-10 12:11                   ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160410131108.2cdd283d@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).