m4sugar: fix AS_VAR_GET regression.
commitc3d301efd6ffe1d908f5eb4f2b9df5380b8b2c3e
authorGary V. Vaughan <gary@gnu.org>
Tue, 29 Jan 2013 12:17:04 +0000 (29 19:17 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 29 Jan 2013 12:25:14 +0000 (29 19:25 +0700)
tree31b9f97c85d7ac57b3a565bc06bfdc7100837fd0
parent2b59b6f8a79b8bf77e178ff4e5aa0ede433d39cf
m4sugar: fix AS_VAR_GET regression.

AS_VAR_GET expands AS_ECHO inside en evaled single quoted string,
which causes the single quotes in "printf '%s\n'" to expose the
%s\n to the shell which expands "\n" to simply "n" before passing
it to printf.
* lib/m4sugar/m4sh.m4 (AS_ECHO): Use double quotes around the
format string.
* doc/autoconf.texi (Limitations of Shell Builtins): Show double
quotes to match AS_ECHO expansion.
* NEWS: Likewise.
NEWS
doc/autoconf.texi
lib/m4sugar/m4sh.m4