bug-findutils
[Top][All Lists]
Advanced

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

[bug #60383] [feature-request] let find read files from stdin or file.


From: Bernhard Voelker
Subject: [bug #60383] [feature-request] let find read files from stdin or file.
Date: Fri, 3 Dec 2021 13:31:58 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

Follow-up Comment #16, bug #60383 (project findutils):

Looking at BSD's -f documentation - a one-liner - and implementation [1],
it seems just to ensure that the next argv[i] is treated as a starting point
(regardless whether it looks like an option or not).
Furthermore, -f seems to change the handling of the '--' argument.

This seems to be a solution for the 80% case, but if one has file names
like '--', then ...

And this is limited by the maximum command line length while -files0-from
allows an arbitrary number of starting points.

[1] https://github.com/freebsd/freebsd-src/tree/main/usr.bin/find/

Compared to GNU find's -files0-from option, the usefulness of -f seems
to be a bit limited, and the former is the more generic and superior
choice.

Therefore, I'd rather would like to see that POSIX would standardize
the -files0-from option (or a -0 shortcut for it).


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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