| Summary: | find(1) documentation neglects to describe "-follow" option | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Peter Ludemann <ludemann> |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Peter Ludemann
2004-04-20 20:20:09 UTC
Peter Ludemann <ludemann@yahoo-inc.com> writes: > The "-follow" option to the find(1) command is only mentioned in > passing, but not otherwise documented. relevant excerpts from find(1): DESCRIPTION [...] -H Cause the file information and file type (see stat(2)) returned for each symbolic link specified on the command line to be tho= se of the file referenced by the link, not the link itself. If t= he referenced file does not exist, the file information and type will be for the link itself. File information of all symbolic links not on the command line is that of the link itself. This is a suitable replacement for the archaic -follow option. [...] COMPATIBILITY The -follow option has been deprecated; -H is considered to be a suita= ble replacement. [...] STANDARDS [...] Historically, the -d, -H and -x options were implemented using the pri- maries -depth, -follow, and -xdev. [...] DES --=20 Dag-Erling Sm=F8rgrav - des@des.no State Changed From-To: open->closed Already fixed. Except -H doesn't work (at least, not with FreeBSD 4.8). Here's an example, where -H doesn't follow a symlink but -follow does (to find the file /tmp/aaa): sharks 15:02:13 ~ $ cd foo sharks 15:02:15 ~/foo $ ln -s /tmp ttt sharks 15:02:18 ~/foo $ find -H . -name aaa sharks 15:02:25 ~/foo $ find . -follow -name aaa ./ttt/aaa sharks 15:02:32 ~/foo $ "Peter Ludemann" <ludemann@yahoo-inc.com> writes: > Except -H doesn't work (at least, not with FreeBSD 4.8). Here's an exampl= e, > where -H doesn't follow a symlink but -follow does (to find the file > /tmp/aaa): Ack, bug in man page. The correct option is -L. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no |