summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorGary V. Vaughan <gary@gnu.org>2013-01-28 10:44:45 +0700
committerGary V. Vaughan <gary@gnu.org>2013-01-29 16:47:48 +0700
commit2b59b6f8a79b8bf77e178ff4e5aa0ede433d39cf (patch)
tree36462f9e7d254e88968a82bfac61611d012b4f99 /NEWS
parentbea5177adc0c924fe7483509a5e38a6d49319fcb (diff)
downloadautoconf-2b59b6f8a79b8bf77e178ff4e5aa0ede433d39cf.tar.gz
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.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 974d48d8..35e7b88b 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,10 @@ GNU Autoconf NEWS - User visible changes.
** Older version of automake and aclocal (< 1.8) are no longer supported
by autoreconf.
+** Use of printf is now recommended instead of working around bugs in
+ echo. Macros AS_ECHO and AS_ECHO_N now expand unconditionally to
+ "printf '%s\n'" and "printf %s".
+
** Macros
- New macro AC_C__GENERIC.