mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-09 02:10:22 +08:00
(AS_SHELL_SANITIZE): Use AS_UNSET instead
of rolling our own unset. (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since in practice we needn't worry about CDPATH if unset doesn't work.
This commit is contained in:
parent
4148c6e1d8
commit
f27d2995ab
@ -159,8 +159,7 @@ m4_foreach([_AS_var],
|
||||
[LANG, LC_ALL, LC_TIME, LC_CTYPE, LANGUAGE,
|
||||
LC_COLLATE, LC_NUMERIC, LC_MESSAGES],
|
||||
[(set +x; test -n "`(_AS_var=C; export _AS_var) 2>&1`") &&
|
||||
{ $as_unset _AS_var || test "${_AS_var+set}" != set; } ||
|
||||
{ _AS_var=C; export _AS_var; }
|
||||
{ AS_UNSET(_AS_var, C); }
|
||||
])
|
||||
|
||||
# Required to use basename.
|
||||
@ -206,7 +205,7 @@ as_nl='
|
||||
IFS=" $as_nl"
|
||||
|
||||
# CDPATH.
|
||||
AS_UNSET([CDPATH], [$PATH_SEPARATOR])
|
||||
$as_unset CDPATH
|
||||
])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user