summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-09-16 23:00:29 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-09-16 23:00:29 +0000
commit2c17a090196d4a5fc553be0fa219299303332455 (patch)
treec7b9039f373d960878146f4ed0b523c04d40c595
parentc04e200c21fd1e25d555f2108d1b9136828f683c (diff)
patsubst on multi-line pattern... icky.
-rw-r--r--regress/usr.bin/m4/patterns.m45
-rw-r--r--regress/usr.bin/m4/patterns.out3
2 files changed, 7 insertions, 1 deletions
diff --git a/regress/usr.bin/m4/patterns.m4 b/regress/usr.bin/m4/patterns.m4
index 2f810df714a..cda5e8ed2af 100644
--- a/regress/usr.bin/m4/patterns.m4
+++ b/regress/usr.bin/m4/patterns.m4
@@ -1,2 +1,5 @@
-dnl $OpenBSD: patterns.m4,v 1.1 2001/09/16 21:09:19 espie Exp $
+dnl $OpenBSD: patterns.m4,v 1.2 2001/09/16 23:00:28 espie Exp $
patsubst(`quote s in string', `(s)', `\\\1')
+patsubst(`check whether subst
+over several lines
+works as expected', `^', `>>>')
diff --git a/regress/usr.bin/m4/patterns.out b/regress/usr.bin/m4/patterns.out
index b7e0c415bac..3e2264090af 100644
--- a/regress/usr.bin/m4/patterns.out
+++ b/regress/usr.bin/m4/patterns.out
@@ -1 +1,4 @@
quote \s in \string
+>>>check whether subst
+>>>over several lines
+>>>works as expected