[bug #59745] Issues in findutils manpages

Helge Kreutzmann <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Follow-up Comment #4, bug #59745 (project findutils):

Hello Andreas,
[comment #3 comment #3:]
> On 2020-12-27 Helge Kreutzmann wrote:
> > Follow-up Comment #2, bug #59745 (project findutils):

> > Actually, it doesn't even error out in my Debian unstable system
> > anymore, so I cannot check.
> 
> This quoting issue only shows up if *.c is expanded by the shell because
there
> are matching files in pwd:
> ~~~
> ametzler@argenau:~$ rm -rf /tmp/findtest/ ; mkdir /tmp/findtest/ ; cd
/tmp/findtest/
> ametzler@argenau:/tmp/findtest$ find . -name *.c -print
> ametzler@argenau:/tmp/findtest$ touch fil1.c fil2.c
> ametzler@argenau:/tmp/findtest$ find . -name *.c -print
> find: paths must precede expression: `fil2.c'
> find: possible unquoted pattern after predicate `-name'?
> ametzler@argenau:/tmp/findtest$ echo find . -name *.c -print
> find . -name fil1.c fil2.c -print

Yes, I'm able to reproduce. But then my initial comment is (almost) correct,
the man page text is (slightly) outdated. The man page says:
find: paths must precede expression
However, the output is:
find: paths must precede expression: `fil2.c'

(Note the extra colon and the '%s').

Sorry, the 2nd not the third line ...

Greetings

           Helge


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59745>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.