* lib/m4sugar/m4sh.m4: protect RHS of AS_VAR_SET against expansion of

quotes (it is delayed to after the eval).
This commit is contained in:
Paolo Bonzini 2003-05-21 19:04:41 +00:00
parent e808ba2ea7
commit f16c8d206e
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View 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)