Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Difference between ~ except and ^ not in fng
- X-seq: zsh-users 18780
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: zzapper <david@xxxxxxxxxxxxxx>
- Subject: Re: Difference between ~ except and ^ not in fng
- Date: Sat, 3 May 2014 13:06:35 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=MZr/igneJqznq8yh0yiwVl8bbulImWKXiQqe0Rwn74k=; b=FgaNv1hxQO90dMaWMHEtuQ99kz/mxjJwPHX5d0N2vDlqPQJt47ZrYMYUUEvf5dVbwu vPoLGU/13ghOUpfvaAIp3YKfRW0hr7ijPJy+2SFY6xXkIRFawuvK25X1tHPNdnRIicgF hweawQFPA85hZ5atZnk1s/L/bDn8uiQDXLSSRbt+QGpYJ+gs9Lvv0sctSVWK2ycfl1Wj IrmoboQHBq90t9jiRV0YrOZi/Xv2MbF77bKaj37EAQS2Ca1FTA9ZWzmo0WabMzYVfdUj o1f/HwbLy2OqoBJ7T6oMCE+F3LbJC6tpqagI37hLoW5t1jRleIrZi7MgoUGFAEj/UaAL BrKA==
- In-reply-to: <XnsA322766E2602Bdavidrayninfocouk@80.91.229.13>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA322766E2602Bdavidrayninfocouk@80.91.229.13>
Hi,
2014-05-03 12:38 GMT+02:00 zzapper <david@xxxxxxxxxxxxxx>:
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author