]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* doc/make.text: Clarify that patsubst doesn't touch unmatched words
authorPaul Smith <psmith@gnu.org>
Mon, 8 Mar 2021 00:05:20 +0000 (19:05 -0500)
committerPaul Smith <psmith@gnu.org>
Mon, 8 Mar 2021 00:05:20 +0000 (19:05 -0500)
doc/make.texi

index fe64ec26ec2af7ed9f989e228a462ea00a2eb188..ce2c6e50f55c829a1732eb9a695dde79d08bd1e1 100644 (file)
@@ -7144,9 +7144,10 @@ Finds whitespace-separated words in @var{text} that match
 @var{pattern} may contain a @samp{%} which acts as a wildcard,
 matching any number of any characters within a word.  If
 @var{replacement} also contains a @samp{%}, the @samp{%} is replaced
-by the text that matched the @samp{%} in @var{pattern}.  Only the first
-@samp{%} in the @var{pattern} and @var{replacement} is treated this
-way; any subsequent @samp{%} is unchanged.@refill
+by the text that matched the @samp{%} in @var{pattern}.  Words that do
+not match the pattern are kept without change in the output.  Only the
+first @samp{%} in the @var{pattern} and @var{replacement} is treated
+this way; any subsequent @samp{%} is unchanged.@refill
 
 @cindex @code{%}, quoting in @code{patsubst}
 @cindex @code{%}, quoting with @code{\} (backslash)