bug-findutils
[Top][All Lists]
Advanced

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

[bug #59745] Issues in findutils manpages


From: Helge Kreutzmann
Subject: [bug #59745] Issues in findutils manpages
Date: Sun, 27 Dec 2020 10:58:41 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

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/




reply via email to

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