m4
This version of m4
contains a few facilities, that do not exist
in System V m4
. These extra facilities are all suppressed by
using the `-G' command line option, unless overridden by other
command line options.
$
n notation for macro arguments, n can contain
several digits, while the System V m4
only accepts one digit.
This allows macros in GNU m4
to take any number of arguments, and
not only nine (see section Arguments to macros).
include
and sinclude
are sought in a
user specified search path, if they are not found in the working
directory. The search path is specified by the `-I' option and the
`M4PATH' environment variable (see section Searching for include files).
undivert
can be non-numeric, in which case the named
file will be included uninterpreted in the output (see section Undiverting output).
format
builtin, which
is modeled after the C library function printf
(see section Formatted output).
regexp
(see section Searching for regular expressions) and patsubst
(see section Substituting text by regular expression) builtins.
m4
with
esyscmd
(see section Reading the output of commands).
builtin
(see section Indirect call of builtins).
indir
(see section Indirect call of macros).
__file__
and __line__
(see section Printing error messages).
dumpdef
and macro tracing can be
controlled with debugmode
(see section Controlling debugging output).
debugfile
(see section Saving debugging output).
In addition to the above extensions, GNU m4
implements the
following command line options: `-F', `-G', `-I',
`-L', `-R', `-V', `-W', `-d',
`-l', `-o' and `-t'. See section Invoking m4
, for a
description of these options.
Also, the debugging and tracing facilities in GNU m4
are much
more extensive than in most other versions of m4
.
Go to the first, previous, next, last section, table of contents.