DO NOT REPLY [Bug 5758] '**' does not match empty strings

samba-bugs at samba-bugs at
Sat Sep 20 16:41:21 GMT 2008

------- Comment #2 from dieter at  2008-09-20 11:41 CST -------
Hi, seems like you're right.  Sorry for bothering you :-)

On the other hand, the manpage says:
"a ’*’ matches any non-empty path component (it stops at slashes)."
Although '*' seems to match non-empty and empty(!) filename components.
Eg: 'foo*' matches the file foo and foobar.

~$ mkdir test-src test-dest; touch test-src/foo test-src/foobar
~$ rsync -av --exclude 'foo*' test-src/ test-dest
building file list ... done

sent 74 bytes  received 20 bytes  188.00 bytes/sec
total size is 0  speedup is 0.00

I've tested this on rsync 2.6.9 and 3.0.3.
Isn't this a mistake in the manpage then?

Configure bugmail:
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list