From: Akim Demaille Date: Tue, 18 Sep 2001 14:21:51 +0000 (+0000) Subject: * doc/autoconf.texi (Limitations of Usual Tools) : More about X-Git-Tag: AUTOCONF-2.52f~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ef39f1b944799bc6076538f0d21d6b129f26dcf;p=thirdparty%2Fautoconf.git * doc/autoconf.texi (Limitations of Usual Tools) : More about `{}'. * lib/autotest/general.m4 (AT_INIT): Adjust. --- diff --git a/ChangeLog b/ChangeLog index 35189e788..2d73d7524 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-09-18 Akim Demaille + + * doc/autoconf.texi (Limitations of Usual Tools) : More about + `{}'. + * lib/autotest/general.m4 (AT_INIT): Adjust. + 2001-09-18 Paul Wagland * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///' diff --git a/doc/autoconf.texi b/doc/autoconf.texi index a282fd4ab..a3a706789 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -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 ----------------- diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index c7a9bdb22..d891a1c97 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -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.