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

Re: Allow slash in alternation patterns in limited cases?



On Apr 11, 12:22pm, Mikael Magnusson wrote:
} Subject: Re: Allow slash in alternation patterns in limited cases?
}
} On Mon, Apr 11, 2016 at 10:37 AM, Peter Stephenson
} <p.stephenson@xxxxxxxxxxx> wrote:
} >
} > The only way I can see is effectively to parse it first in the globbing
} > code to treat a complete set of parentheses specially.
} 
} Doesn't this already work as is with pattern matching?

Yes, but so does somestuff(one/thing|another/things)morestuff.  So it's
inconsistent with pattern matching in that a set of parens enclosing the
entire pattern now takes on special semantics.



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