bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #16269] The manual gives an incorrect example


From: anonymous
Subject: [bug #16269] The manual gives an incorrect example
Date: Wed, 5 Apr 2006 07:35:26 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Firefox/1.0.7 (Debian package 1.0.7-1)

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: address@hidden
             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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]