1206491Sjilles# $FreeBSD: releng/11.0/bin/sh/tests/parameters/pwd1.0 213738 2010-10-12 18:20:38Z obrien $ 2206491Sjilles# Check that bogus PWD values are not accepted from the environment. 3206491Sjilles 4206491Sjillescd / || exit 3 5206491Sjillesfailures=0 6213738Sobrien[ "$(PWD=foo ${SH} -c 'pwd')" = / ] || : $((failures += 1)) 7213738Sobrien[ "$(PWD=/var/empty ${SH} -c 'pwd')" = / ] || : $((failures += 1)) 8213738Sobrien[ "$(PWD=/var/empty/foo ${SH} -c 'pwd')" = / ] || : $((failures += 1)) 9213738Sobrien[ "$(PWD=/bin/ls ${SH} -c 'pwd')" = / ] || : $((failures += 1)) 10206491Sjilles 11206491Sjillesexit $((failures != 0)) 12