This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
find bug, plus and PATCH for wwwdocs/bin/preprocess
- To: <gcc-patches at gcc dot gnu dot org>
- Subject: find bug, plus and PATCH for wwwdocs/bin/preprocess
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Fri, 10 Aug 2001 11:05:34 +0200 (CEST)
- cc: <bug-findutils at gnu dot org>
The following invocations are equivalent under
GNU find 4.1 (Red Hat 6.2 as on gcc.gnu.org)
FreeBSD find (FreeBSD 4.3)
Solaris find (Solaris 2.8)
but no under
GNU find 4.1.6 (SuSE 7.2)
1. find . \( -name CVS -prune \) -o -type f
2. find . \( -name CVS -prune \) -o -type f -print
I thus changed the former to the latter for increased portability,
though I'm tempted to think this is a bug (or at least a misfeature)
in GNU find 4.1.6.
Gerald
Index: preprocess
===================================================================
RCS file: /cvs/gcc/wwwdocs/bin/preprocess,v
retrieving revision 1.25
diff -u -3 -p -r1.25 preprocess
--- preprocess 2001/08/05 09:13:34 1.25
+++ preprocess 2001/08/10 09:04:39
@@ -176,7 +176,7 @@ if [ $# -gt 0 ]; then
else
# Process all files in the source tree, excluding files/directories
# called CVS.
- for f in `find . \( -name CVS -prune \) -o -type f` ; do
+ for f in `find . \( -name CVS -prune \) -o -type f -print` ; do
process_file $f
done
fi