* tests/misc/pwd-option.sh (base): Initialize with -P,
now that -L is the default, to accommodate an initial
working directory with a symlink component.
* tests/misc/readlink-fp-loop.sh: Use $(env pwd -P) to get the
absolute working directory. Using "env" ensures we do not invoke
any shell built-in, and PATH ensures we invoke the one from coreutils.
* tests/readlink/can-e.sh: Likewise.
* tests/readlink/can-f.sh: Likewise.
* tests/readlink/can-m.sh: Likewise.
mkdir -p a/b || framework_failure_
ln -s a/b c || framework_failure_
-base=$(env -- pwd)
+base=$(env -- pwd -P)
# Remove any logical paths from $PWD.
cd "$base" || framework_failure_
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ readlink
-cwd=$("$abs_top_builddir/src/pwd")
+cwd=$(env pwd -P)
# To trigger this bug, we have to construct a name/situation during
# the resolution of which the code dereferences the same symlink (S)
print_ver_ readlink
pwd=$(pwd)
-my_pwd=$("$abs_top_builddir/src/pwd")
+my_pwd=$(env pwd -P)
tmp=d
mkdir $tmp || framework_failure_
print_ver_ readlink
pwd=$(pwd)
-my_pwd=$("$abs_top_builddir/src/pwd")
+my_pwd=$(env pwd -P)
tmp=d
mkdir $tmp || framework_failure_
print_ver_ readlink
pwd=$(pwd)
-my_pwd=$("$abs_top_builddir/src/pwd")
+my_pwd=$(env pwd -P)
tmp=d
mkdir $tmp || framework_failure_