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, 02 Oct 2007 22:05:54 +0000

CVSROOT:        /sources/m4
Module name:    m4
Branch:         branch-1_4
Changes by:     Eric Blake <ericb>      07/10/02 22:05:53

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.1.1.1.2.135
retrieving revision 1.1.1.1.2.136
diff -u -b -r1.1.1.1.2.135 -r1.1.1.1.2.136
--- doc/m4.texinfo      10 Aug 2007 15:13:02 -0000      1.1.1.1.2.135
+++ doc/m4.texinfo      2 Oct 2007 22:05:52 -0000       1.1.1.1.2.136
@@ -4610,12 +4610,17 @@
 @result{}-1
 @end example
 
-Omitting @var{substring} evokes a warning, but still produces output.
+Omitting @var{substring} evokes a warning, but still produces output;
+contrast this with an empty @var{substring}.
 
 @example
 index(`abc')
 @error{}m4:stdin:1: Warning: too few arguments to builtin `index'
 @result{}0
+index(`abc', `')
address@hidden
+index(`abc', `b')
address@hidden
 @end example
 
 @node Regexp
@@ -4688,12 +4693,17 @@
 @result{}c
 @end example
 
-Omitting @var{regexp} evokes a warning, but still produces output.
+Omitting @var{regexp} evokes a warning, but still produces output;
+contrast this with an empty @var{regexp} argument.
 
 @example
 regexp(`abc')
 @error{}m4:stdin:1: Warning: too few arguments to builtin `regexp'
 @result{}0
+regexp(`abc', `')
address@hidden
+regexp(`abc', `', `def')
address@hidden
 @end example
 
 @node Substr
@@ -4904,12 +4914,17 @@
 @result{}bab
 @end example
 
-Omitting @var{regexp} evokes a warning, but still produces output.
+Omitting @var{regexp} evokes a warning, but still produces output;
+contrast this with an empty @var{regexp} argument.
 
 @example
 patsubst(`abc')
 @error{}m4:stdin:1: Warning: too few arguments to builtin `patsubst'
 @result{}abc
+patsubst(`abc', `')
address@hidden
+patsubst(`abc', `', `-')
address@hidden
 @end example
 
 @node Format




reply via email to

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