summaryrefslogtreecommitdiff
path: root/regress/usr.bin/m4/patterns.m4
blob: af37c2ba1778ac1daa18871b010db6e7adbeb225 (plain)
1
2
3
4
5
6
7
8
9
10
11
dnl $OpenBSD: patterns.m4,v 1.4 2003/06/08 20:11:45 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', `^ *#.*
')
dnl Special case: empty regexp
patsubst(`empty regexp',`',`a ')