summaryrefslogtreecommitdiff
path: root/usr.bin/m4
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2011-11-06 12:25:44 +0000
committerMarc Espie <espie@cvs.openbsd.org>2011-11-06 12:25:44 +0000
commit239bab7542814654b206b5d1aebe186553f36294 (patch)
tree1d85849a0bfc61abc463a33581fa81ce1ed95795 /usr.bin/m4
parent8c6c6094a02b18134e4db6d1f051cca12be1a51b (diff)
improve gm4 compatibility, from Robert Young, thanks !
note that patsubst is non-standard. okay miod@, deraadt@
Diffstat (limited to 'usr.bin/m4')
-rw-r--r--usr.bin/m4/gnum4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/m4/gnum4.c b/usr.bin/m4/gnum4.c
index 5f6568af033..4c8010cbcbc 100644
--- a/usr.bin/m4/gnum4.c
+++ b/usr.bin/m4/gnum4.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gnum4.c,v 1.41 2010/09/07 19:58:09 marco Exp $ */
+/* $OpenBSD: gnum4.c,v 1.42 2011/11/06 12:25:43 espie Exp $ */
/*
* Copyright (c) 1999 Marc Espie
@@ -497,7 +497,7 @@ doregexp(const char *argv[], int argc)
pbstr(argv[4]);
}
error = regcomp(&re, mimic_gnu ? twiddle(argv[3]) : argv[3],
- REG_EXTENDED);
+ REG_EXTENDED|REG_NEWLINE);
if (error != 0)
exit_regerror(error, &re);