aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2009-09-20 16:47:56 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2009-09-20 16:47:56 +0000
commita05cb852372017a7980f7e89d3bbe14ac8ab88d3 (patch)
treef106bb21aea2a9c23e39cdb7711da1984dea06a5
parentac8f32ce62c1ca8acb1ce4dff1856d69152c492e (diff)
downloadsrc-a05cb852372017a7980f7e89d3bbe14ac8ab88d3.tar.gz
src-a05cb852372017a7980f7e89d3bbe14ac8ab88d3.zip
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 MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=197363
-rw-r--r--usr.bin/find/find.13
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1
index 824b917a2a5b..dee5e046175f 100644
--- a/usr.bin/find/find.1
+++ b/usr.bin/find/find.1
@@ -312,6 +312,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
@@ -920,7 +921,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"