(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:
Paul Eggert 2002-08-31 05:48:04 +00:00
parent 4148c6e1d8
commit f27d2995ab

View File

@ -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
])