2 # Check that bogus PWD values are not accepted from the environment.
6 [ "$(PWD=foo sh -c 'pwd')" = / ] || : $((failures += 1))
7 [ "$(PWD=/var/empty sh -c 'pwd')" = / ] || : $((failures += 1))
8 [ "$(PWD=/var/empty/foo sh -c 'pwd')" = / ] || : $((failures += 1))
9 [ "$(PWD=/bin/ls sh -c 'pwd')" = / ] || : $((failures += 1))
11 exit $((failures != 0))