summaryrefslogtreecommitdiff
path: root/usr.bin/m4/m4.1
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-01-11 14:06:13 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-01-11 14:06:13 +0000
commit23672b016e655ac72332ce1d7258b102c47affc4 (patch)
tree6eb96ecee200b2dd25c7d5bb073bfc00598e3788 /usr.bin/m4/m4.1
parente9c732393983baaa370e71df06a0ea002b54c413 (diff)
Don't recognize built-ins in contexts where they don't make sense.
Namely, it doesn't help to try and expand include if it's not followed by parenthesis and a filename. This should make applications like sendmail m4 scripts more sturdy for unquoted machine names that happen to collide with built-ins. The only drawback is that our m4 may now do intelligent things with scripts that don't work on other systems.
Diffstat (limited to 'usr.bin/m4/m4.1')
-rw-r--r--usr.bin/m4/m4.111
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/m4/m4.1 b/usr.bin/m4/m4.1
index 646e9820f6e..25f4db51b4d 100644
--- a/usr.bin/m4/m4.1
+++ b/usr.bin/m4/m4.1
@@ -1,4 +1,4 @@
-.\" @(#) $OpenBSD: m4.1,v 1.8 1999/11/17 15:31:53 espie Exp $
+.\" @(#) $OpenBSD: m4.1,v 1.9 2000/01/11 14:06:11 espie Exp $
.\"
.\"
.Dd January 26, 1993
@@ -30,16 +30,19 @@ parenthesis '('. If the macro name is not followed by an open
parenthesis it is processed with no arguments.
.Pp
Macro names consist of a leading alphabetic or underscore
-possibly followed by alphanumeric or underscore characters, therefore
-valid macro names match this pattern [a-zA-Z_][a-zA-Z0-9_]*.
+possibly followed by alphanumeric or underscore characters, e.g.,
+valid macro names match the pattern [a-zA-Z_][a-zA-Z0-9_]*.
.Pp
In arguments to macros, leading unquoted space, tab and newline
-characters are ignored. To quote strings use left and right single
+characters are ignored. To quote strings, use left and right single
quotes (e.g., ` this is a string with a leading space'). You can change
the quote characters with the
.Ic changequote
built-in macro.
.Pp
+Some built-ins don't make any sense without arguments, and hence are not
+recognized as special when not followed by an open parenthesis.
+.Pp
The options are as follows:
.Bl -tag -width "-Dname[=value]xxx"
.It Fl D Ns Ar name Ns Oo