From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11918 invoked by alias); 19 Sep 2014 13:50:46 -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: 19114 Received: (qmail 18446 invoked from network); 19 Sep 2014 13:50:44 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Date: Fri, 19 Sep 2014 21:50:28 +0800 From: Han Pingtian To: zsh-users@zsh.org Subject: Re: man page bug for negative pattern? Message-ID: <20140919135028.GD4265@localhost.localdomain> Mail-Followup-To: zsh-users@zsh.org References: <20140919090220.GB4265@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14091913-7182-0000-0000-0000007F3D8F On Fri, Sep 19, 2014 at 12:11:01PM +0200, Jérémie Roquet wrote: > Hi, > > 2014-09-19 11:02 GMT+02:00 Han Pingtian : > > In man page of zshexpn, for "^x" negative pattern, it said: > > > > This has a higher precedence than `/' > > > > But I think the precedence should be lower than /, right? Just as the > > zshguide said: > > > > In filename generation, the ^ has a lower precedence than a slash: > > > > in page 228. > > The zshguide is wrong there. It also says that “~ is the only globbing > operator to have a lower precedence than /” > But if "^" has a higher precedence than "/", then "^foo/bar" will match any files in "." other than "foo/bar"?