From: Paul Smith Date: Mon, 8 Mar 2021 00:05:20 +0000 (-0500) Subject: * doc/make.text: Clarify that patsubst doesn't touch unmatched words X-Git-Tag: 4.3.90~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88732a29f2c2c24b6682a96556d195302b6cd215;p=thirdparty%2Fmake.git * doc/make.text: Clarify that patsubst doesn't touch unmatched words --- diff --git a/doc/make.texi b/doc/make.texi index fe64ec26..ce2c6e50 100644 --- a/doc/make.texi +++ b/doc/make.texi @@ -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)