From: Wayne Davison Date: Thu, 1 May 2003 19:33:57 +0000 (+0000) Subject: Mention that a pattern with "**" is matched against the entire path, even X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/38499c1a49445e3a8d8224e303f2e34bf455f840 Mention that a pattern with "**" is matched against the entire path, even if the pattern doesn't contain a slash. --- diff --git a/rsync.yo b/rsync.yo index e278b7a4..f65e53cf 100644 --- a/rsync.yo +++ b/rsync.yo @@ -913,11 +913,11 @@ itemize( it() if the pattern includes a double asterisk "**" then all wildcards in the pattern will match slashes, otherwise they will stop at slashes. - it() if the pattern contains a / (not counting a trailing /) then it - is matched against the full filename, including any leading - directory. If the pattern doesn't contain a / then it is matched - only against the final component of the filename. Again, remember - that the algorithm is applied recursively so "full filename" can + it() if the pattern contains a / (not counting a trailing /) or a "**" + then it is matched against the full filename, including any leading + directory. If the pattern doesn't contain a / or a "**", then it is + matched only against the final component of the filename. Again, + remember that the algorithm is applied recursively so "full filename" can actually be any portion of a path. it() if the pattern starts with "+ " (a plus followed by a space)