Hi.

Bruno Haible <br...@clisp.org> wrote:

> Is there some realistic possibility that the POSIX regex syntax might be
> extended in the future, in such a way that [^0-9---] means something
> different?

That shouldn't happen, as one can point at V7 Unix and Unix awk and
mawk as treating --- as "-" since forever. Existing practice trumps
(or should trump) innovative new interpretations.

> If that happens, and if we opt now to assign a meaning to this
> regex, we would have to choose between POSIX compliance and backward
> compatibility — a bad situation.

I don't think it's a realistic worry.

My two cents of course.  I have already pushed this change in gawk's
copy of regex.

Thanks,

Arnold

Reply via email to