summaryrefslogtreecommitdiff
path: root/usr.bin/m4/m4.1
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2007-05-30 04:41:36 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2007-05-30 04:41:36 +0000
commitda024d08640ec7bd74b5283712b0f2a1b09bf53e (patch)
treebe577cb67939587578554ad352c8d88f488711b3 /usr.bin/m4/m4.1
parent277a4ab0979c704b527d8b13888d4ecf8f581f43 (diff)
- use a consistent text for STANDARDS
- note which options are extensions to POSIX
Diffstat (limited to 'usr.bin/m4/m4.1')
-rw-r--r--usr.bin/m4/m4.145
1 files changed, 21 insertions, 24 deletions
diff --git a/usr.bin/m4/m4.1 b/usr.bin/m4/m4.1
index 5d87750f3e0..f1b05c52722 100644
--- a/usr.bin/m4/m4.1
+++ b/usr.bin/m4/m4.1
@@ -1,4 +1,4 @@
-.\" @(#) $OpenBSD: m4.1,v 1.48 2006/12/12 21:16:18 jmc Exp $
+.\" @(#) $OpenBSD: m4.1,v 1.49 2007/05/30 04:41:34 jmc Exp $
.\"
.\" Copyright (c) 1989, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -419,18 +419,29 @@ Returns the current file's line number.
Returns the current file's name.
.El
.Sh STANDARDS
+The
.Nm
-is expected to be
+utility is compliant with the
.St -p1003.1-2004
-compliant,
-along with a few extensions taken from
-.Nm gnu-m4 .
+specification.
.Pp
-Flags
-.Fl I ,
-.Fl d ,
-.Fl t
-are non-standard.
+The flags
+.Op Fl dgIot
+and the macros
+.Ic builtin ,
+.Ic esyscmd ,
+.Ic expr ,
+.Ic format ,
+.Ic indir ,
+.Ic paste ,
+.Ic patsubst ,
+.Ic regexp ,
+.Ic spaste ,
+.Ic unix ,
+.Ic __line__ ,
+and
+.Ic __file__
+are extensions to that specification.
.Pp
The output format of tracing and of
.Ic dumpdef
@@ -455,20 +466,6 @@ In this implementation,
replaces the top-most definition only.
Other implementations may erase all definitions on the stack instead.
.Pp
-For portability, one should not use the macros
-.Ic builtin ,
-.Ic esyscmd ,
-.Ic expr ,
-.Ic format ,
-.Ic indir ,
-.Ic paste ,
-.Ic patsubst ,
-.Ic regexp ,
-.Ic spaste ,
-.Ic unix ,
-.Ic __line__ ,
-.Ic __file__ .
-.Pp
All built-ins do expand without arguments in many other
.Nm m4 .
.Pp