]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/torture.at (srcdir): Fix quoting.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 8 Dec 2007 11:00:02 +0000 (12:00 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 8 Dec 2007 11:00:02 +0000 (12:00 +0100)
ChangeLog
tests/torture.at

index e674318a60f11301b530c5cfffe4064a3d6da3ce..1f157b70eca9ff976b65de75c145be90a6acacab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * tests/torture.at (srcdir): Fix quoting.
+
        Do not pass top_srcdir to configure scripts in testsuite.
        * tests/autotest.at (srcdir propagation): Copy install-sh to
        source tree.
index 11c619d79d8a5e9d3ef9e05737e0f1087a1aabcc..6a7b962c902fe3c69315c332aead5d1d0d005e93 100644 (file)
@@ -972,10 +972,13 @@ AT_DATA([configure.ac],
 
 AC_CONFIG_FILES([foo at-dir/bar])
 
+# Use quotes in the INIT-COMMANDS to accommodate a value of $srcdir
+# containing e.g., spaces or shell meta-characters.
+# Use *single* quotes because the context is an unquoted here-doc.
 AC_CONFIG_COMMANDS([report],
-[test -f $srcdir/configure.ac ||
+[test -f "$srcdir/configure.ac" ||
    AC_MSG_ERROR([cannot find $srcdir/configure.ac])],
-                  [srcdir=$srcdir])
+                  [srcdir='$srcdir'])
 
 AC_OUTPUT
 rm -f -r foo at-dir/bar