>From 34e49c83367569c490ce39ea48dc196c37a84181 Mon Sep 17 00:00:00 2001 From: Erik Auerswald Date: Thu, 3 Apr 2014 10:19:23 +0200 Subject: [PATCH] Clarify escaping in wildcard patterns documentation A single backslash in front of a non-wildcard character is removed from a wildcard pattern, but not from a simple pattern without wildcard characters. Document this in the man page. --- rsync.yo | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rsync.yo b/rsync.yo index dfb541a..b4ac949 100644 --- a/rsync.yo +++ b/rsync.yo @@ -2754,6 +2754,8 @@ 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. + Any unescaped backslash is removed from a wildcard pattern, but not from + a simple pattern without wildcard characters. 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 -- 1.7.9.5