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', `')
[EMAIL PROTECTED]
+index(`abc', `b')
[EMAIL PROTECTED]
 @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', `')
[EMAIL PROTECTED]
+regexp(`abc', `', `def')
[EMAIL PROTECTED]
 @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', `')
[EMAIL PROTECTED]
+patsubst(`abc', `', `-')
[EMAIL PROTECTED]
 @end example
 
 @node Format


Reply via email to