bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Incorrect warning in 1.4.5 with regexp


From: Eric Blake
Subject: Re: Incorrect warning in 1.4.5 with regexp
Date: Fri, 18 Aug 2006 02:49:08 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Karl Nelson <nelson85 <at> llnl.gov> writes:

> 
> 
> According to the documentation a warning is issued if there are "fewer" 
> sub-expressions than requested.   Unfortunately, the
> newest version of gnu m4 has interpreted it to mean if any of the 
> subexpressions evaluate to empty even when they are present in
> the regular expression.   This seems like a bug.
> 
> bug.m4:
> regexp(`abc',`\([*&]\)?\(.*\)',`ifelse(\1,,Form 1 \1,Form 2 \2)')
> 
> [kenelson ~/]$ m4 bug.m4
> bug.m4:1: m4: Warning: sub-expression 1 not present

Indeed.  Thanks for the report, and I will have a patch before 1.4.6 next week.

-- 
Eric Blake







reply via email to

[Prev in Thread] Current Thread [Next in Thread]