svn commit: r256767 - head/usr.sbin/freebsd-update

Jilles Tjoelker jilles at stack.nl
Sat Oct 19 21:53:37 UTC 2013


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


More information about the svn-src-all mailing list