Use unset CDPATH instead of making it empty.

This commit is contained in:
Richard M. Stallman 1998-06-30 22:15:41 +00:00
parent 33ba5485ee
commit 691beae826

View file

@ -92,7 +92,7 @@ case "${srcdir}" in
## We may be able to use the $PWD environment variable to make this
## absolute. But sometimes PWD is inaccurate.
## Make sure CDPATH doesn't affect cd (in case PWD is relative).
CDPATH=
unset CDPATH
if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ;
then
srcdir="$PWD"