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

Re: bracket expressions and POSIX



> Actually, SUS explicitly speaks about both quoting (when parsed by shell)
> and escaping (when pattern is interpreted).
> 
> <http://www.opengroup.org/onlinepubs/007908799/xcu/chap2.html#tag_001_013>

This is similar to POSIX, as is the reference on Bracket Expressions.
http://www.opengroup.org/onlinepubs/007908799/xbd/re.html#tag_007_003_005

> Note, that patterns in shell are *based* on regular expressions but not
> identical (that probably has confused you).

What confuses me is where it says that the backslash loses its special
meaning within a bracket expression.  I see that backslash-escapes
take precedence over bracket expressions in BRE's, but, as you noted,
pattern matching is not BRE's.



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