Soren Orel Sun, 28 Jun 2009 07:35:14 -0700
final solution: if ! cd "$1"; then echo "error"; exit 1; fi
thank you!