zsh-users
 help / color / mirror / code / Atom feed
From: "Jérémie Roquet" <arkanosis@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: man page bug for negative pattern?
Date: Fri, 19 Sep 2014 16:02:29 +0200	[thread overview]
Message-ID: <CAFOazANy7-nppRw5F5gx=2kpfo_oo-b7q-fQp-avGWTc_kUbdg@mail.gmail.com> (raw)
In-Reply-To: <20140919135028.GD4265@localhost.localdomain>

2014-09-19 15:50 GMT+02:00 Han Pingtian <hanpt@linux.vnet.ibm.com>:
> But if "^" has a higher precedence than "/", then
>
>     "^foo/bar"
>
> will match any files in "." other than "foo/bar"?

I'll match any file named “bar” in any subdirectory of “.” other than “foo”.

Think of “higher precedence” as implicit parentheses (even if these
parentheses wouldn't be valid zsh):

Since “^” has higher precedence, “^foo/bar” means “(^foo)/bar”. If “/”
had higher precedence, it'd mean “^(foo/bar)”, but that's not the
case.

Best regards,

-- 
Jérémie


  reply	other threads:[~2014-09-19 14:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-19  9:02 Han Pingtian
2014-09-19 10:11 ` Jérémie Roquet
2014-09-19 13:50   ` Han Pingtian
2014-09-19 14:02     ` Jérémie Roquet [this message]
2014-09-19 14:22     ` Peter Stephenson

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='CAFOazANy7-nppRw5F5gx=2kpfo_oo-b7q-fQp-avGWTc_kUbdg@mail.gmail.com' \
    --to=arkanosis@gmail.com \
    --cc=zsh-users@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).