Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: man page bug for negative pattern?



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 <hanpt@xxxxxxxxxxxxxxxxxx>:
> > 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"? 



Messages sorted by: Reverse Date, Date, Thread, Author