Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Nov 2011 08:35:13 +0200
From:      Valentin Nechayev <netch@netch.kiev.ua>
To:        Alexey Dokuchaev <danfe@freebsd.org>
Cc:        Jilles Tjoelker <jilles@freebsd.org>, svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r227366 - in head/etc: . rc.d
Message-ID:  <20111109063513.GD25476@netch.kiev.ua>
In-Reply-To: <20111109014916.GA75862@FreeBSD.org>
References:  <201111082302.pA8N2Wmj053356@svn.freebsd.org> <20111109014916.GA75862@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
 Wed, Nov 09, 2011 at 01:49:16, danfe wrote about "Re: svn commit: r227366 - in head/etc: . rc.d": 

> >   rc.d: Eliminate some unnecessary non-POSIX constructs:
> >   
> >    * ^ in character class
> > 
> > -			for file in ${dir}/[^0-9]*.sh; do
> > +			for file in ${dir}/[!0-9]*.sh; do
> 
> I don't have my copy of POSIX handy, but looking at SUSv2, circumflex `^' is
> documented as non-matching list expression specifier, while `!' is not.
> 
> I am reading it wrong?

You are right - Posix.1-2008 says the same - '^' as matching reverse and
nothing for '!'

<cite>
A non-matching list expression begins with a <circumflex> ( '^' ),       
and specifies a list that shall match any single-character               
collating element except for the expressions represented in the          
list after the leading <circumflex>.
</cite>


-netch-



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