diff options
author | Paul Smith <psmith@gnu.org> | 2021-03-07 19:05:20 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2021-03-07 19:05:20 -0500 |
commit | 88732a29f2c2c24b6682a96556d195302b6cd215 (patch) | |
tree | 100383faed60b3a3a56d21c92deb404f171223ff /doc | |
parent | 7b0a7418579a57934d4871205ffa29d0865dcc0e (diff) | |
download | make-git-88732a29f2c2c24b6682a96556d195302b6cd215.tar.gz |
* doc/make.text: Clarify that patsubst doesn't touch unmatched words
Diffstat (limited to 'doc')
-rw-r--r-- | doc/make.texi | 7 |
1 files changed, 4 insertions, 3 deletions
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) |