I have a .bash_profile script that sets up some aliases for me based on directory existence:
if [ -d /home/user/games ] ; then
alias cdgames='cd /home/user/games'
fi
One of these directory is on an NFS mount - if the filer becomes unresponsive su - user
will hang on this line in .bash_profile.
Is there any way to check existence of a directory in bash without causing a hang if the directory is mounted to an unresponsive filer?