1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-26 07:33:47 +00:00

Use "sh -c pwd" when we want to avoid having the

shell fix up the value of $PWD.
This commit is contained in:
Richard M. Stallman 1993-09-19 20:04:21 +00:00
parent e16b32b045
commit dce3d8a95c

View File

@ -353,7 +353,7 @@ case "${srcdir}" in
. )
## We may be able to use the $PWD environment variable to make this
## absolute. But sometimes PWD is inaccurate.
if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; pwd)`" = "`pwd`" ] ; then
if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then
srcdir="$PWD"
else
srcdir="`(cd ${srcdir}; pwd)`"