On Thu, Jul 08, 2010 at 10:31:54PM +0200, Jakub Wilk wrote:
> According to regex(7) manpage, a backslash followed by any other character
> than ^.[$()|*+?{\ matches that character taken as an ordinary character, as
> if the backslash had not been present. However:
> 
> * According to POSIX[0], the interpretation of an ordinary character
> preceded by a backslash is undefined.

The current manpage (5.10-1 or 5.13 upstream) at least now annotates the
corresponding parts, including the one referenced to, with

| POSIX.2 leaves some aspects of RE syntax and semantics open; "(!)"
| marks decisions on these aspects that may not be fully portable to other
| POSIX.2 implementations.

So this improves the situation somewhat.

> * Worse still, the described behavior differs from what is actually
> implemented in the GNU libc:
> 
> $ gcc -Wall testre.c -o testre && ./testre
> \S matches foobar

This part still seems to hold true.

Cheers,
Flo

Attachment: signature.asc
Description: PGP signature

Reply via email to