summaryrefslogtreecommitdiff
path: root/rsync.yo
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2014-04-19 10:16:00 -0700
committerWayne Davison <wayned@samba.org>2014-04-19 10:16:00 -0700
commit1524c2e5c73c6d237f8308afc19186e7656aaa44 (patch)
tree50e31226e326c6a8b3e5f0be701293967138fc28 /rsync.yo
parent0dedfbce2c1b851684ba658861fe9d620636c56a (diff)
downloadrsync-1524c2e5c73c6d237f8308afc19186e7656aaa44.tar.gz
rsync-1524c2e5c73c6d237f8308afc19186e7656aaa44.tar.bz2
rsync-1524c2e5c73c6d237f8308afc19186e7656aaa44.zip
Expand the backslash description a bit more in excludes.
Diffstat (limited to 'rsync.yo')
-rw-r--r--rsync.yo4
1 files changed, 4 insertions, 0 deletions
diff --git a/rsync.yo b/rsync.yo
index dfb541ab..eafa3854 100644
--- a/rsync.yo
+++ b/rsync.yo
@@ -2754,6 +2754,10 @@ itemization(
it() a '[' introduces a character class, such as [a-z] or [[:alpha:]].
it() in a wildcard pattern, a backslash can be used to escape a wildcard
character, but it is matched literally when no wildcards are present.
+ This means that there is an extra level of backslash removal when a
+ pattern contains wildcard characters compared to a pattern that has none.
+ e.g. if you add a wildcard to "foo\bar" (which matches the backslash) you
+ would need to use "foo\\bar*" to avoid the "\b" becoming just "b".
it() if the pattern contains a / (not counting a trailing /) or a "**",
then it is matched against the full pathname, including any leading
directories. If the pattern doesn't contain a / or a "**", then it is