#! /anydir/ksh echo "testing in /" cd / echo PWD is `pwd` /anydir/chroot-test echo echo "testing in /anydir" cd /anydir echo PWD is `pwd` /anydir/chroot-test