DO NOT REPLY [Bug 5759] New: filter rules: no wildcards match empty strings

samba-bugs at samba-bugs at
Sun Sep 14 13:42:08 GMT 2008

           Summary: filter rules: no wildcards match empty strings
           Product: rsync
           Version: 3.0.3
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at
        ReportedBy: dieter at
         QAContact: rsync-qa at

when filtering with pattern rules, all wildcards ( ’*’, ’?’, and
’[’ ) expect at least one character.
So there doesn't seem to be a way to match 'foo', 'foobar' and not match 'fo'.
('foo*','foo**','foo?','foo[a-z]' match foobar but not foo)

Regexes have the pattern modifier '*' for this, shell globbing expands '*' to
any string (including empty ones), but this does not seem to be possible with
rsync rules syntax.

PS: this bug is somewhat related to

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