This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

find bug, plus and PATCH for wwwdocs/bin/preprocess


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]