* lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
commitd7884b4e294ee48f4ebe9e1462a9119dac2dfc07
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Dec 2006 18:32:34 +0000 (1 18:32 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Dec 2006 18:32:34 +0000 (1 18:32 +0000)
treec8aa03e950b54104d664f80905779d49378e87fd
parent503392af34e3c4571bd44112179f57a9a99b1e45
* lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
string for more reliable failure.  Wrap the entire test that
causes the broken Solaris printf to dump core, in a subshell,
so the segmentation fault message is reliably suppressed.
Fix shell expansion errors by using /usr/ucb/echo always;
avoid an error on systems without it by another subshell.
Avoid m4 expansion of `$1'.  Set the zeroth argument of the
subshell-$as_echo to `as_echo', for better error message.
ChangeLog
lib/m4sugar/m4sh.m4