svn commit: r227366 - in head/etc: . rc.d

Alexey Dokuchaev danfe at
Thu Nov 10 02:10:22 UTC 2011

On Wed, Nov 09, 2011 at 10:31:27PM +0100, Jilles Tjoelker wrote:
> Shell patterns are different from regular expressions.

I suspected something like this, yes...

> In SUSv4, XCU 2.13 Pattern Matching Notation describes shell patterns.
> In particular, the role of the '^' to negate a bracket expression is
> instead fulfilled by '!'; a '^' directly after the '[' produces
> unspecified results (so that the common RE-like behaviour is allowed).
> Historically, this is because the Bourne shell interprets '^' as a
> synonym for '|' (pipe) and therefore it cannot occur in a pattern
> unquoted.

Thanks for the explanation.  Always wanted to try using ^ as pipe, but all
modern shells seem to not support it anymore.


More information about the svn-src-all mailing list