From owner-svn-src-head@FreeBSD.ORG Thu Nov 10 02:10:22 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id D87131065673; Thu, 10 Nov 2011 02:10:22 +0000 (UTC) Date: Thu, 10 Nov 2011 02:10:22 +0000 From: Alexey Dokuchaev To: Jilles Tjoelker Message-ID: <20111110021022.GC43300@FreeBSD.org> References: <201111082302.pA8N2Wmj053356@svn.freebsd.org> <20111109014916.GA75862@FreeBSD.org> <20111109213127.GB29992@stack.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20111109213127.GB29992@stack.nl> User-Agent: Mutt/1.4.2.1i Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r227366 - in head/etc: . rc.d X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2011 02:10:22 -0000 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