samba-bugs@samba.org
2008-Sep-14 13:32 UTC
DO NOT REPLY [Bug 5758] New: '**' does not match empty strings
https://bugzilla.samba.org/show_bug.cgi?id=5758
Summary: '**' does not match empty strings
Product: rsync
Version: 3.0.3
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: dieter@plaetinck.be
QAContact: rsync-qa@samba.org
man rsync, section "FILTER RULES" says:
"use ’**’ to match anything, including slashes."
This is incorrect. '**' does not match empty strings.
The description should be:
"use ’**’ to match any non-empty string, including slashes."
This would be more in line with what '*' does ( "a ‘*’ matches any
non-empty path component (it stops at slashes)." )
--
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.
samba-bugs@samba.org
2008-Sep-15 02:45 UTC
DO NOT REPLY [Bug 5758] '**' does not match empty strings
https://bugzilla.samba.org/show_bug.cgi?id=5758 ------- Comment #1 from wayned@samba.org 2008-09-14 21:46 CST ------- "**" certainly does match empty strings, even at the start of a path (e.g. **/foo will exclude a "foo" at the root of the transfer). If you're seeing an issue, please be specific in what is not working for you. -- 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.
samba-bugs@samba.org
2008-Sep-20 16:41 UTC
DO NOT REPLY [Bug 5758] '**' does not match empty strings
https://bugzilla.samba.org/show_bug.cgi?id=5758 ------- Comment #2 from dieter@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.
samba-bugs@samba.org
2008-Oct-11 16:36 UTC
DO NOT REPLY [Bug 5758] '**' does not match empty strings
https://bugzilla.samba.org/show_bug.cgi?id=5758
wayned@samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Comment #3 from wayned@samba.org 2008-10-11 11:36 CST -------
The "non-empty" qualifier in the manpage was certainly deceiving, and
has been
removed.
--
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.
Apparently Analagous Threads
- DO NOT REPLY [Bug 5759] New: filter rules: no wildcards match empty strings
- DO NOT REPLY [Bug 6151] New: --safe-links can be fooled by adding extra slashes to the path
- DO NOT REPLY [Bug 6376] New: Trailing slashes avoid creating directories in daemon mode
- DO NOT REPLY [Bug 5404] New: rsync --dry-run should show where files will go
- [Bug 2491] New: x11-ssh-askpass (ssh-add) sets incorrect flags in WM_SIZE_HINTS