zsh-users
 help / color / mirror / code / Atom feed
From: "Jérémie Roquet" <arkanosis@gmail.com>
To: zzapper <david@rayninfo.co.uk>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Difference between ~ except and ^ not in fng
Date: Sat, 3 May 2014 13:06:35 +0200	[thread overview]
Message-ID: <CAFOazAMf5Y8Ny1663vQ3ZOEbkjBgZtQ9Axpq_S9HoCdaZFPSyg@mail.gmail.com> (raw)
In-Reply-To: <XnsA322766E2602Bdavidrayninfocouk@80.91.229.13>

Hi,

2014-05-03 12:38 GMT+02:00 zzapper <david@rayninfo.co.uk>:
> I'm trying to formulate some examples that show the difference between ~ &
> ^
> But everytime I do I find I can do it with either.

They don't have the same precedence: ^ has high precedence while ~ has
low precedence.

foo/^bar/* and foo/*/*~foo/bar/* mean pretty much the same, except
that the first one is much less verbose.

**/*~*oo/ba* means any path without “oo/ba” in it (including foo/bar),
I'm not sure you can easily do the same thing with ^ (as / has lower
precedence than ^).

Best regards,

-- 
Jérémie


  reply	other threads:[~2014-05-03 11:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <david@rayninfo.co.uk>
2014-05-03 10:38 ` zzapper
2014-05-03 11:06   ` Jérémie Roquet [this message]
2014-05-03 12:37   ` 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=CAFOazAMf5Y8Ny1663vQ3ZOEbkjBgZtQ9Axpq_S9HoCdaZFPSyg@mail.gmail.com \
    --to=arkanosis@gmail.com \
    --cc=david@rayninfo.co.uk \
    --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).