Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: man page bug for negative pattern?
- X-seq: zsh-users 19116
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: man page bug for negative pattern?
- Date: Fri, 19 Sep 2014 16:02:29 +0200
- 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 :content-type:content-transfer-encoding; bh=FogJ71bnO+Q/43vF06d+wPi0YNg8qT3D3vcl+QYk2yU=; b=ibP6iFOTEiTqDSkNbk9XzVF3RnSPlIFTUHb3YoCzlxf2Wtu+E5ncD3F+z8SHGmhuai kXMizTv3ghHJkNbml4DeXt82knb8H0kX6KMosqflmHSERCviS2SXXoEQ75uKaeGmqM3m 6TE3teBlpl3hGDhETFqJmCzHnCgt5quvZHlCkdRmagon7jgKun2pV5EqcmW2UxqfkzcE sHCs2raDTJ+MjxonKwra9G9YdBdQS10VAnphmu5+XvNyPhjhJjVG8AkW81rvoSp/tZhW nBLOlkN1t03RNtz2njOZIFAJe6zwwSWHcRM8iD5EOkVPxiT2Pm1Be4Jriaq8EUFu1cOL 1plA==
- In-reply-to: <20140919135028.GD4265@localhost.localdomain>
- 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: <20140919090220.GB4265@localhost.localdomain> <CAFOazAPkFerR_FgJ9fFVp-9Ub300+TKh6RKm55u+OK+T9UFxRg@mail.gmail.com> <20140919135028.GD4265@localhost.localdomain>
2014-09-19 15:50 GMT+02:00 Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>:
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author