Bug 223127 - find(1) does not explain what "-f" option does
Summary: find(1) does not explain what "-f" option does
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2017-10-20 12:43 UTC by Mathieu Arnold
Modified: 2018-11-15 01:03 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Arnold freebsd_committer 2017-10-20 12:43:42 UTC
find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
     find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]

There is a `[-f path]` and `-f path` but it is explained anywhere. (There is one sentence that mentions it in the BUGS section, but it does not really explain or say what it does.)

(It must not be used a lot as it was originally not documented either in the CSRG import from way back when.)
Comment 1 Tavian Barnes 2018-11-15 01:03:30 UTC
For the record, `-f path` is the same as specifying `path` as one of the starting points, but it won't conflict with other options.  So you can write `-f -print` to search a directory called `-print`, or `-f \(` if the name is an open paren, etc.