summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-09-27 12:34:53 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-09-27 12:34:53 +0000
commitd6f9c633dcbb549cf8f5b34ab91c01a1a5778bb1 (patch)
tree709ceac8f38c534668dc7432b2cadd576fc4b37f
parentb96a89d78f2f6e7de13fff2ebe8d83c9f9c5df55 (diff)
More patsubst that fail...
-rw-r--r--regress/usr.bin/m4/patterns.m46
-rw-r--r--regress/usr.bin/m4/patterns.out1
2 files changed, 6 insertions, 1 deletions
diff --git a/regress/usr.bin/m4/patterns.m4 b/regress/usr.bin/m4/patterns.m4
index cda5e8ed2af..6aedcd25bdc 100644
--- a/regress/usr.bin/m4/patterns.m4
+++ b/regress/usr.bin/m4/patterns.m4
@@ -1,5 +1,9 @@
-dnl $OpenBSD: patterns.m4,v 1.2 2001/09/16 23:00:28 espie Exp $
+dnl $OpenBSD: patterns.m4,v 1.3 2001/09/27 12:34:52 espie Exp $
patsubst(`quote s in string', `(s)', `\\\1')
patsubst(`check whether subst
over several lines
works as expected', `^', `>>>')
+patsubst(`# This is a line to zap
+# and a second line
+keep this one', `^ *#.*
+')
diff --git a/regress/usr.bin/m4/patterns.out b/regress/usr.bin/m4/patterns.out
index 3e2264090af..9e33be7c2ea 100644
--- a/regress/usr.bin/m4/patterns.out
+++ b/regress/usr.bin/m4/patterns.out
@@ -2,3 +2,4 @@ quote \s in \string
>>>check whether subst
>>>over several lines
>>>works as expected
+keep this one