From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8578 invoked by alias); 19 Sep 2014 14:24:54 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19116 Received: (qmail 14884 invoked from network); 19 Sep 2014 14:24:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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== X-Received: by 10.181.13.105 with SMTP id ex9mr41105422wid.58.1411135365081; Fri, 19 Sep 2014 07:02:45 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20140919135028.GD4265@localhost.localdomain> References: <20140919090220.GB4265@localhost.localdomain> <20140919135028.GD4265@localhost.localdomain> From: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= Date: Fri, 19 Sep 2014 16:02:29 +0200 Message-ID: Subject: Re: man page bug for negative pattern? To: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2014-09-19 15:50 GMT+02:00 Han Pingtian : > 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 =E2=80=9Cbar=E2=80=9D in any subdirectory of =E2= =80=9C.=E2=80=9D other than =E2=80=9Cfoo=E2=80=9D. Think of =E2=80=9Chigher precedence=E2=80=9D as implicit parentheses (even = if these parentheses wouldn't be valid zsh): Since =E2=80=9C^=E2=80=9D has higher precedence, =E2=80=9C^foo/bar=E2=80=9D= means =E2=80=9C(^foo)/bar=E2=80=9D. If =E2=80=9C/=E2=80=9D had higher precedence, it'd mean =E2=80=9C^(foo/bar)=E2=80=9D, but that's n= ot the case. Best regards, --=20 J=C3=A9r=C3=A9mie