[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Findutils-patches] [PATCH 01/19] Applied doc patch from Stepan Kasal (b
From: |
James Youngman |
Subject: |
[Findutils-patches] [PATCH 01/19] Applied doc patch from Stepan Kasal (backport) |
Date: |
Fri, 10 Apr 2009 23:52:58 +0100 |
---
ChangeLog | 5 +++++
doc/find.texi | 17 ++++++++++-------
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5f733d3..db80680 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-10 Stepan Kasal <address@hidden>
+
+ Backport a fix from 4.5.x.
+ * doc/find.texi (Cleaning Up): Move the note about -depth up.
+
2008-12-23 James Youngman <address@hidden>
Fix Savannah bug #25154: Failure to compile with GCC-2.95.4
diff --git a/doc/find.texi b/doc/find.texi
index 937c0fd..56d3e32 100644
--- a/doc/find.texi
+++ b/doc/find.texi
@@ -3865,10 +3865,18 @@ when an update requires a merge:
find . -name '.#*' -print0 | xargs -0r rm -f
@end example
-The command above works, but the following is safer:
+If your @code{find} command removes directories, you may find that
+you get a spurious error message when @code{find} tries to recurse
+into a directory that has now been removed. Using the @samp{-depth}
+option will normally resolve this problem.
+
address@hidden What does the following sentence mean? Why is -delete safer?
--kasal
address@hidden The command above works, but the following is safer:
+
+It is also possible to use the @samp{-delete} action:
@example
-find . -name '.#*' -depth -delete
+find . -depth -name '.#*' -delete
@end example
@c Idea from Franc,ois Pinard.
@@ -3881,11 +3889,6 @@ which shell you use).
find /tmp -depth -user "$LOGNAME" -type f -delete
@end example
-If your @code{find} command removes directories, you may find that
-you get a spurious error message when @code{find} tries to recurse
-into a directory that has now been removed. Using the @samp{-depth}
-option will normally resolve this problem.
-
@c Idea from Noah Friedman.
To remove old Emacs backup and auto-save files, you can use a command
like the following. It is especially important in this case to use
--
1.5.6.5
- [Findutils-patches] [PATCH 00/19] *** SUBJECT HERE ***, James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 01/19] Applied doc patch from Stepan Kasal (backport),
James Youngman <=
- [Findutils-patches] [PATCH 02/19] Fix Savannah bug 22662 (nanoseconds wrongly appended after PM for find -printf %AX), James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 03/19] Fix bugs in bugfix for #22662, James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 04/19] Fixed Savannah bug #23663, crash in some locales for find -printf '%AX', James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 05/19] Fix bug #23996 (integer overflow when parsing "-used 3")., James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 06/19] Moved bugfixes in the NEWS file out of "Documentation Enhancements" into "Bug Fixes"., James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 07/19] Fix Savannah bug #24283, find-4.5.2 -printf %TY causes NULL pointer dereference, James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 08/19] Typo fix from Jim Meyering <address@hidden>, James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 09/19] fix a typo in a comment, James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 10/19] find: avoid using undefined statbuf, James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 11/19] find: Fix -regexptype parse specification bug: declare as POSOPT., James Youngman, 2009/04/10