URL:
  <http://savannah.gnu.org/bugs/?47482>

                 Summary: man page example error
                 Project: findutils
            Submitted by: None
            Submitted on: Mon 21 Mar 2016 04:14:17 AM UTC
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.6.0
           Fixed Release: None

    _______________________________________________________

Details:

The example from the man page (v4.6.0, may be in earlier ones as well)

    find repo/ -exec test -d {}/.svn \; -or \
    -exec test -d {}/.git \; -or -exec test -d {}/CVS \; \
    -print -prune

Should be

    find repo/ \( -exec test -d {}/.svn \; -or \
    -exec test -d {}/.git \; -or -exec test -d {}/CVS \; \) \
    -print -prune

Otherwise the -print and -prune only pertain to the last -exec test -d {}/CVS
\;




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47482>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to