DO NOT REPLY [Bug 5758] New: '**' does not match empty strings - Tools

This is a discussion on DO NOT REPLY [Bug 5758] New: '**' does not match empty strings - Tools ; 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 ...

+ Reply to Thread
Results 1 to 4 of 4

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

  1. 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.
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


  2. 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.
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


  3. 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.
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


  4. 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.
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


+ Reply to Thread