Fix regexp regression of 2007-09-29.
commit4f74b635626f8628301a77b6a4926b1b0738ef2b
authorEric Blake <ebb9@byu.net>
Tue, 9 Oct 2007 16:25:37 +0000 (9 10:25 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 9 Oct 2007 16:34:02 +0000 (9 10:34 -0600)
tree18b403a5a07a95668516baf2a9f3169fac065d6b
parent10f18604f16b6dc60803230289a02151abf9c778
Fix regexp regression of 2007-09-29.

* src/builtin.c (substitute): Allow NULL regs when no
subexpressions were present.
(m4_regexp): Handle \ escapes even with empty regex.
* doc/m4.texinfo (Regexp, Patsubst): Catch this bug.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/m4.texinfo
src/builtin.c