Current Path : /compat/linux/proc/self/root/usr/src/tools/regression/bin/sh/parameters/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/src/tools/regression/bin/sh/parameters/pwd1.0 |
# $FreeBSD: release/9.1.0/tools/regression/bin/sh/parameters/pwd1.0 213738 2010-10-12 18:20:38Z obrien $ # Check that bogus PWD values are not accepted from the environment. cd / || exit 3 failures=0 [ "$(PWD=foo ${SH} -c 'pwd')" = / ] || : $((failures += 1)) [ "$(PWD=/var/empty ${SH} -c 'pwd')" = / ] || : $((failures += 1)) [ "$(PWD=/var/empty/foo ${SH} -c 'pwd')" = / ] || : $((failures += 1)) [ "$(PWD=/bin/ls ${SH} -c 'pwd')" = / ] || : $((failures += 1)) exit $((failures != 0))