m4sugar: factor away _AS_ECHO_PREPARE.
commit2b59b6f8a79b8bf77e178ff4e5aa0ede433d39cf
authorGary V. Vaughan <gary@gnu.org>
Mon, 28 Jan 2013 03:44:45 +0000 (28 10:44 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 29 Jan 2013 09:47:48 +0000 (29 16:47 +0700)
tree36462f9e7d254e88968a82bfac61611d012b4f99
parentbea5177adc0c924fe7483509a5e38a6d49319fcb
m4sugar: factor away _AS_ECHO_PREPARE.

"printf '%s\n' ..." has been a fine replacement for plain "echo"
for at least 5 years (probably more like 10), even with most
museum-piece shells.
* lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Remove.
(_AS_SHELL_SANITIZE): Keep as_nl setting originally from
_AS_ECHO_PREPARE here where it more properly belongs.
(AS_ECHO, AS_ECHO_N): Use printf unconditionally.
* doc/autoconf.texi (Limitations of Shell Builtins): Document
preference for 'printf' over working around 'echo' bugs.
* NEWS: Updated.
Reported by Jim Meyering.
NEWS
doc/autoconf.texi
lib/m4sugar/m4sh.m4