]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix quoting in eval
authorMike Frysinger <vapier@gentoo.org>
Mon, 24 Jan 2022 05:57:30 +0000 (00:57 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 24 Jan 2022 05:57:30 +0000 (00:57 -0500)
We need to escape the quotes so eval sees them when expanding the
variable value, not when quoting the variable name itself.

* t/local.mk: Escape quotes to eval.

t/local.mk

index b22f1ade93d7349161f61760627570e751d3c9cd..31d43e86856eb2faf1c3708da2dd44913f20f309 100644 (file)
@@ -51,7 +51,7 @@ AM_TESTS_ENVIRONMENT = \
     am_test_lib_sourced \
     test_lib_sourced \
   ; do \
-    eval test x"\$${$$v}" = x || unset $$v; \
+    eval test x\"\$${$$v}\" = x || unset $$v; \
   done;
 # We want warning messages and explanations for skipped tests to go to
 # the console if possible, so set up 'stderr_fileno_' properly.