(cd somedir; echo "I%27m now in $PWD")
pwd # still in first directory