Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115867668
D43162.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
875 B
Referenced Files
None
Subscribers
None
D43162.diff
View Options
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1
--- a/usr.bin/find/find.1
+++ b/usr.bin/find/find.1
@@ -28,7 +28,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd January 23, 2023
+.Dd December 22, 2023
.Dt FIND 1
.Os
.Sh NAME
@@ -347,6 +347,22 @@
.Ic -delete
primary will fail to delete a directory if it is not empty.
Following symlinks is incompatible with this option.
+.Pp
+.Em WARNING :
+The
+.Ic -delete
+primary will immediately attempt to delete the current path when
+evaluated.
+Be mindful of its place in the expression; as a general rule, it
+should almost always come last.
+If in doubt, try running with
+.Ic -print
+in place of
+.Ic -delete
+first.
+See
+.Sx OPERATORS
+below for additional information on the order of evaluation.
.It Ic -depth
Always true;
same as the non-portable
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 7:04 PM (11 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17863014
Default Alt Text
D43162.diff (875 B)
Attached To
Mode
D43162: find: Add a warning about -delete.
Attached
Detach File
Event Timeline
Log In to Comment