Hi, the attached patch IMHO improves the man page regarding use of the backslash as escape character in wildcard patterns.
Thanks, Erik P.S. Please keep me in Cc: as I am not subscribed to the list. -- Premature optimization is the root of all evil. -- Donald Knuth
>From 34e49c83367569c490ce39ea48dc196c37a84181 Mon Sep 17 00:00:00 2001 From: Erik Auerswald <auers...@unix-ag.uni-kl.de> 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
-- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html