]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
authorAkim Demaille <akim@epita.fr>
Tue, 18 Sep 2001 14:21:51 +0000 (14:21 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 18 Sep 2001 14:21:51 +0000 (14:21 +0000)
`{}'.
* lib/autotest/general.m4 (AT_INIT): Adjust.

ChangeLog
doc/autoconf.texi
lib/autotest/general.m4

index 35189e788d5a2cbcbf5a8289e0370d09316bba01..2d73d752404e390e1e436c796b3e1c0162b1f31d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-09-18  Akim Demaille  <akim@epita.fr>
+
+       * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
+       `{}'.
+       * lib/autotest/general.m4 (AT_INIT): Adjust.
+
 2001-09-18  Paul Wagland   <paul@wagland.net>
 
        * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
index a282fd4ab10a2f399d29205ecfc7bc4add1e4935..a3a706789cffed56ddd9feaf7c0a3d2baa20003a 100644 (file)
@@ -8886,6 +8886,19 @@ set to @command{expr} or to @command{false} according to the result.
 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 @samp{@{@}} is guaranteed only if the argument is
+exactly @emph{@{@}}, not if it's only a part of an argument.  For
+instance on DU, and HP-UX 10.20 and HP-UX 11:
+
+@example
+$ touch foo
+$ find . -name foo -exec echo "@{@}-@{@}" \;
+@{@}-@{@}
+@end example
+
+@noindent
+while @sc{gnu} @command{find} reports @samp{./foo-./foo}.
+
 
 @item @command{grep}
 @c -----------------
index c7a9bdb22ac4b1ddb565435c5436b68d07372da6..d891a1c9762eef4f2de6f725521c29c4f7134e4b 100644 (file)
@@ -378,20 +378,24 @@ AS_BOX(m4_defn([AT_TESTSUITE_NAME]))
   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.