URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16269>

                 Summary: The manual gives an incorrect example
                 Project: findutils
            Submitted by: None
            Submitted on: Wednesday 04/05/06 at 07:35 UTC
                Category: documentation
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: [EMAIL PROTECTED]
             Open/Closed: Open
                 Release: None
           Fixed Release: None

    _______________________________________________________

Details:

The manuals states:
NON-BUGS
       $ find . -name *.c -print
       find: paths must precede expression
       Usage: find [-H] [-L] [-P] [path...] [expression]

       This happens because *.c has been expanded by the  shell  resulting 
in
       find actually receiving a command line like this:

       find . -name bigram.c code.c frcode.c locate.c -print

       That  command  is of course not going to work.  Instead of doing
things
       this way, you should enclose the pattern in quotes:
       $ find . -name ´*.c´ -print

-------------

Those are the wrong sort of quotes.  You want 
find . -name '*.c' -print

instead.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16269>

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



_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to