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

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


https://bugzilla.samba.org/show_bug.cgi?id=5758





------- Comment #2 from dieter at plaetinck.be  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: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- 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