greycat 1241626882 learn You can detect a dangling symlink using [[ -L $foo && ! -e $foo ]]