]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* doc/autoconf.texi (Caching Results): Fix the examples to use a
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 5 Mar 2006 09:09:47 +0000 (09:09 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 5 Mar 2006 09:09:47 +0000 (09:09 +0000)
recommended quoting style and discard unwanted output.

ChangeLog
doc/autoconf.texi

index 73c0dbeda4423af243ffbf850c9269eaf9219a56..95897c4e86073379474f1f1a84b7248ea79a4f28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * doc/autoconf.texi (Caching Results): Fix the examples to use a
+       recommended quoting style and discard unwanted output.
+
 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
 
        * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
index 473efb32ef24905e9e874a7cf8b52c7779b8cce9..a39faba15cd00b44ac06875080b334e40313b1f4 100644 (file)
@@ -7585,8 +7585,8 @@ instance, the following macro is broken:
 AC_DEFUN([AC_SHELL_TRUE],
 [AC_CACHE_CHECK([whether true(1) works], [ac_cv_shell_true_works],
                 [ac_cv_shell_true_works=no
-                 true && ac_cv_shell_true_works=yes
-                 if test $ac_cv_shell_true_works = yes; then
+                 (true) 2>/dev/null && ac_cv_shell_true_works=yes
+                 if test "$ac_cv_shell_true_works" = yes; then
                    AC_DEFINE([TRUE_WORKS], [1],
                              [Define if `true(1)' works properly.])
                  fi])
@@ -7604,8 +7604,8 @@ is:
 AC_DEFUN([AC_SHELL_TRUE],
 [AC_CACHE_CHECK([whether true(1) works], [ac_cv_shell_true_works],
                 [ac_cv_shell_true_works=no
-                 true && ac_cv_shell_true_works=yes])
- if test $ac_cv_shell_true_works = yes; then
+                 (true) 2>/dev/null && ac_cv_shell_true_works=yes])
+ if test "$ac_cv_shell_true_works" = yes; then
    AC_DEFINE([TRUE_WORKS], [1],
              [Define if `true(1)' works properly.])
  fi