Nathan Sidwell <[email protected]> writes:

> grep didn't find a CPP_FOR_BUILD, but I do agree it's a bit of a Pandora's
> box. Here's the earlier approach I mentioned.  It's sufficient to skip
> line-comments, which is IMHO the natural way to temporarily stub out a pass.
>
> not sure why awk wanted '[[:blank:]]` (rather than `[:blank:]`, but one awk
> complained and the other didn't

[:foo:] names character classes, and a character class is an element
inside a bracket expression.  The correct spelling is [[:blank:]]:

From (gawk) Bracket Expressions:

>    A character class is only valid in a regexp _inside_ the brackets
> of a bracket expression.  Character classes consist of ‘[:’, a keyword
> denoting the class, and ‘:]’.  *note Table 3.1: table-char-classes.
> lists the character classes defined by the POSIX standard.
-- 
Arsen Arsenović

Attachment: signature.asc
Description: PGP signature

Reply via email to