From d082285ef7d86f3eacfa5fa3b3d7ae750897c84f Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 4 Oct 2009 17:22:51 +0000 Subject: MFC r197363: Update find(1) man page for -L/-delete interaction. It is a bit unfortunate that the example to delete broken symlinks now uses rm(1), but allowing this with -delete would require fixing fts(3) to not imply FTS_NOCHDIR if FTS_LOGICAL is given (or hacks in the -delete option). PR: bin/90687 --- usr.bin/find/find.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1 index d8376d81d870..51c2b790625f 100644 --- a/usr.bin/find/find.1 +++ b/usr.bin/find/find.1 @@ -306,6 +306,7 @@ character in its pathname relative to .Dq Pa \&. for security reasons. Depth-first traversal processing is implied by this option. +Following symlinks is incompatible with this option. .It Ic -depth Always true; same as the @@ -843,7 +844,7 @@ recent than the current time minus one minute. Use the .Xr echo 1 command to print out a list of all the files. -.It Li "find -L /usr/ports/packages -type l -delete" +.It Li "find -L /usr/ports/packages -type l -exec rm -- {} +" Delete all broken symbolic links in .Pa /usr/ports/packages . .It Li "find /usr/src -name CVS -prune -o -depth +6 -print" -- cgit v1.3