Expand the backslash description a bit more in excludes.
authorWayne Davison <wayned@samba.org>
Sat, 19 Apr 2014 17:16:00 +0000 (10:16 -0700)
committerWayne Davison <wayned@samba.org>
Sat, 19 Apr 2014 17:16:00 +0000 (10:16 -0700)
rsync.yo

index dfb541ab3336a72af9d218562a7e14bb02e8f629..eafa385496ac406a2ff32aaf8807167215f218f0 100644 (file)
--- 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