m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to m4/doc/m4.texinfo,v [branch-1_4]


From: Eric Blake
Subject: Changes to m4/doc/m4.texinfo,v [branch-1_4]
Date: Tue, 07 Nov 2006 19:14:04 +0000

CVSROOT:        /sources/m4
Module name:    m4
Branch:         branch-1_4
Changes by:     Eric Blake <ericb>      06/11/07 19:14:03

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.1.1.1.2.97
retrieving revision 1.1.1.1.2.98
diff -u -b -r1.1.1.1.2.97 -r1.1.1.1.2.98
--- doc/m4.texinfo      1 Nov 2006 13:44:53 -0000       1.1.1.1.2.97
+++ doc/m4.texinfo      7 Nov 2006 19:14:03 -0000       1.1.1.1.2.98
@@ -4670,7 +4670,7 @@
 @var{shell-command}.
 
 Prior to executing the command, @code{m4} flushes its buffers.
-The default standard input and error output of @var{shell-command} are
+The default standard input and standard error of @var{shell-command} are
 the same as those of @code{m4}.  The error output of @var{shell-command}
 is not a part of the expansion: it will appear along with the error
 output of @code{m4}.
@@ -4875,8 +4875,9 @@
 You can print error messages using @code{errprint}:
 
 @deffn Builtin errprint (@var{message}, @dots{})
-Prints @var{message} and the rest of the arguments on the
-standard error output, separated by spaces.
+Prints @var{message} and the rest of the arguments to standard error,
+separated by spaces.  Standard error is used, regardless of the
address@hidden option (@pxref{Debugging options, , Invoking m4}).
 
 The expansion of @code{errprint} is void.
 The macro @code{errprint} is recognized only with parameters.
@@ -4887,13 +4888,20 @@
 ')
 @error{}Invalid arguments to forloop
 @result{}
+errprint(`1')errprint(`2',`3
+')
address@hidden 3
address@hidden
 @end example
 
-A trailing newline is @emph{not} printed automatically, so it must be
-supplied as part of the argument, as in the example.  BSD
-implementations of @code{m4} do append a trailing newline on each
address@hidden call, while some other implementations only print the
-first argument.
+A trailing newline is @emph{not} printed automatically, so it should be
+supplied as part of the argument, as in the example.  Unfortunately, the
+exact output of @code{errprint} is not very portable to other @code{m4}
+implementations: @acronym{POSIX} requires that all arguments be printed,
+but some implementations of @code{m4} only print the first.
+Furthermore, some BSD implementations always append a newline for each
address@hidden call, regardless of whether the last argument already
+had one, and @acronym{POSIX} is silent on whether this is acceptable.
 
 @node Location
 @section Printing current location




reply via email to

[Prev in Thread] Current Thread [Next in Thread]