svn commit: r227366 - in head/etc: . rc.d
Valentin Nechayev
netch at netch.kiev.ua
Wed Nov 9 06:51:46 UTC 2011
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-
More information about the svn-src-all
mailing list