(_AS_LINENO_PREPARE): Unset ENV and BASH_ENV when reinvoking the

shell, to work around problems with installers who put strange things
like "cd" commands in their environments.
This commit is contained in:
Paul Eggert 2002-03-22 05:35:53 +00:00
parent 7dc0b2892f
commit b07b6a5b8e

View File

@ -507,6 +507,8 @@ m4_define([_AS_LINENO_PREPARE],
case $as_dir in
/*)
if ("$as_dir/$as_base" -c '_AS_LINENO_WORKS') 2>/dev/null; then
AS_UNSET(BASH_ENV)
AS_UNSET(ENV)
CONFIG_SHELL=$as_dir/$as_base
export CONFIG_SHELL
exec "$CONFIG_SHELL" "$[0]" ${1+"$[@]"}