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

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


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

           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 samba.org
        ReportedBy: dieter at plaetinck.be
         QAContact: rsync-qa at samba.org


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
https://bugzilla.samba.org/show_bug.cgi?id=5758


-- 
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