]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/m4sugar/m4sh.m4: protect RHS of AS_VAR_SET against expansion of
authorPaolo Bonzini <bonzini@gnu.org>
Wed, 21 May 2003 19:04:41 +0000 (19:04 +0000)
committerPaolo Bonzini <bonzini@gnu.org>
Wed, 21 May 2003 19:04:41 +0000 (19:04 +0000)
quotes (it is delayed to after the eval).

ChangeLog
lib/m4sugar/m4sh.m4

index 0df9010399ca5e6d92b56091a7a815e314a55c94..1f30b33ae4cfb74a37014216aab06e26291bea0f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
+
+       * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape
+       the RHS before passing it to eval.
+
 2003-05-21  Akim Demaille  <akim@epita.fr>
 
        * bin/autoupdate.in ($m4): Fix quotation.
index 8e9e85b38b8572df6891c854d0e6f8ef2de0558e..a2f6b061ec037ef41e43da28bae4bd0ec8c87c94 100644 (file)
@@ -1006,7 +1006,7 @@ AS_REQUIRE([_AS_TR_CPP_PREPARE])dnl
 m4_define([AS_VAR_SET],
 [AS_LITERAL_IF([$1],
                [$1=$2],
-               [eval "$1=$2"])])
+               [eval "$1=AS_ESCAPE([$2])"])])
 
 
 # AS_VAR_GET(VARIABLE)