Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 2013 23:53:33 +0200
From:      Jilles Tjoelker <jilles@stack.nl>
To:        Colin Percival <cperciva@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@FreeBSD.org>
Subject:   Re: svn commit: r256767 - head/usr.sbin/freebsd-update
Message-ID:  <20131019215333.GA1489@stack.nl>
In-Reply-To: <5262E5A7.5020608@freebsd.org>
References:  <201310190940.r9J9eUiT027701@svn.freebsd.org> <5262E5A7.5020608@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 19, 2013 at 01:03:51PM -0700, Colin Percival wrote:
> On 10/19/13 02:40, Dag-Erling Smørgrav wrote:
> > -	P="[-+./:=%@_[[:alnum:]]"
> > +	P="[-+./:=%@_[~[:alnum:]]"

> Shouldn't this be
> 	P="[-+./:=%@_~[[:alnum:]]"
> instead?

That is equivalent. Both versions match an open square bracket in
addition to the other characters.

[:class:] can be used within [...] to match a named character class.
Although it is common to see [[:class:]] in an RE or shell pattern, the
sequences '[[' and ']]' are not required.

-- 
Jilles Tjoelker



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131019215333.GA1489>