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 _______________________________________________ Bug-m4 mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-m4
