autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: find(1)


From: Akim Demaille
Subject: FYI: find(1)
Date: 18 Sep 2001 16:30:23 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
        `{}'.
        * lib/autotest/general.m4 (AT_INIT): Adjust.

Index: doc/autoconf.texi
===================================================================
RCS file: /cvs/autoconf/doc/autoconf.texi,v
retrieving revision 1.529
diff -u -u -r1.529 autoconf.texi
--- doc/autoconf.texi 2001/09/17 19:44:24 1.529
+++ doc/autoconf.texi 2001/09/18 14:12:50
@@ -8886,6 +8886,19 @@
 The option @option{-maxdepth} seems to be GNU specific. Tru64 v5.1,
 NetBSD 1.5 and Solaris 2.5 @command{find} commands do not understand it.
 
+The replacement of @address@hidden@}} is guaranteed only if the argument is
+exactly @address@hidden@}}, not if it's only a part of an argument.  For
+instance on DU, and HP-UX 10.20 and HP-UX 11:
+
address@hidden
+$ touch foo
+$ find . -name foo -exec echo "@address@hidden@address@hidden" \;
address@hidden@address@hidden@}
address@hidden example
+
address@hidden
+while @sc{gnu} @command{find} reports @samp{./foo-./foo}.
+
 
 @item @command{grep}
 @c -----------------
Index: lib/autotest/general.m4
===================================================================
RCS file: /cvs/autoconf/lib/autotest/general.m4,v
retrieving revision 1.104
diff -u -u -r1.104 general.m4
--- lib/autotest/general.m4 2001/09/18 09:03:18 1.104
+++ lib/autotest/general.m4 2001/09/18 14:12:50
@@ -378,20 +378,24 @@
   if test -n "$top_srcdir"; then
     AS_BOX([ChangeLogs.])
     echo
-    find "$top_srcdir" -name ChangeLog \
-      -exec echo "$as_me: {}:" ';' \
-      -exec sed 's/^/| /;10q' {} ';' \
-      -exec echo ';'
+    for at_file in `find "$top_srcdir" -name ChangeLog -print`
+    do
+      echo "$as_me: $at_file:"
+      sed 's/^/| /;10q' $at_file
+      echo
+    done
 
     AS_UNAME
     echo
 
     AS_BOX([Configuration logs.])
     echo
-    find "$top_srcdir" -name config.log \
-      -exec echo "$as_me: {}:" ';' \
-      -exec sed 's/^/| /' {} ';' \
-      -exec echo ';'
+    for at_file in `find "$top_srcdir" -name config.log -print`
+    do
+      echo "$as_me: $at_file:"
+      sed 's/^/| /;10q' $at_file
+      echo
+    done
   fi
 
   # Inform about the contents of the config files.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]