summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexander von Gernler <grunk@cvs.openbsd.org>2006-12-12 09:24:23 +0000
committerAlexander von Gernler <grunk@cvs.openbsd.org>2006-12-12 09:24:23 +0000
commit36977a651b3148c8b4f0409978f81979ceaa891a (patch)
treeb74326b7ac1d8ed13ede70d092bf6a8f5925c303 /usr.bin
parent733167dc1516d0e5836c169b55c4dd9daf4ba368 (diff)
mention the fact that m4 also accepts files via cmdline
ok espie@ jmc@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/m4/m4.115
1 files changed, 12 insertions, 3 deletions
diff --git a/usr.bin/m4/m4.1 b/usr.bin/m4/m4.1
index c7c9ebc8995..eb180993a54 100644
--- a/usr.bin/m4/m4.1
+++ b/usr.bin/m4/m4.1
@@ -1,4 +1,4 @@
-.\" @(#) $OpenBSD: m4.1,v 1.46 2006/08/29 18:40:49 mbalmer Exp $
+.\" @(#) $OpenBSD: m4.1,v 1.47 2006/12/12 09:24:22 grunk Exp $
.\"
.\" Copyright (c) 1989, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -50,15 +50,24 @@
.Bk -words
.Op Fl t Ar macro
.Op Fl U Ns Ar name
+.Op Ar
.Ek
.Sh DESCRIPTION
The
.Nm m4
utility is a macro processor that can be used as a front end to any
language (e.g., C, ratfor, fortran, lex, and yacc).
+If no input files are given,
.Nm m4
-reads from the standard input and writes
-the processed text to the standard output.
+reads from the standard input, otherwise the files from command line are
+processed in the given order.
+Input files can be regular files, files in the m4 include paths, or a
+single dash
+.Pq Sq - ,
+denoting standard input.
+.Nm m4
+writes
+the processed text to the standard output, unless told otherwise.
.Pp
Macro calls have the form name(argument1[, argument2, ..., argumentN]).
.Pp