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. ./danfe _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"