diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-03-12 17:00:44 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-03-12 17:49:12 -0700 |
commit | 9894c7b5ba694820636f79ddec0c82e23af5e8e0 (patch) | |
tree | 276521230ecc287704859d3db277541fd3579e6d /lib | |
parent | 8dcc5babcd2e86f7457eab95fba7c92654ac7556 (diff) | |
download | autoconf-9894c7b5ba694820636f79ddec0c82e23af5e8e0.tar.gz |
Fix _AS_DETECT_BETTER_SHELL breakage
Problem reported by Zack Weinberg in:
https://lists.gnu.org/r/autoconf/2020-03/msg00017.html
* lib/m4sugar/m4sh.m4 (_AS_RUN): Use sh -c instead of
the no-longer-existent $as_echo. This fixes a bug introduced
in 2013-01-28T03:44:45Z!gary@gnu.org.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/m4sugar/m4sh.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4 index f8be3186..92999f58 100644 --- a/lib/m4sugar/m4sh.m4 +++ b/lib/m4sugar/m4sh.m4 @@ -418,7 +418,7 @@ m4_default_quoted([$4], [M4SH-INIT-FN]))])]) # or under the given SHELL, protecting it from syntax errors. # Set as_run in order to assist _AS_LINENO_WORKS. m4_define([_AS_RUN], -[m4_ifval([$2], [{ $as_echo "$as_bourne_compatible"$1 | as_run=a $2; }], +[m4_ifval([$2], [as_run=a $2 -c "$as_bourne_compatible"$1], [(eval $1)]) 2>/dev/null]) |