bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16714: [PATCH/committed] tests: fix quoting in eval


From: Mike Frysinger
Subject: bug#16714: [PATCH/committed] tests: fix quoting in eval
Date: Mon, 24 Jan 2022 00:59:28 -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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/local.mk b/t/local.mk
index b22f1ade93d7..31d43e86856e 100644
--- a/t/local.mk
+++ b/t/local.mk
@@ -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.
-- 
2.34.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]