function setpath { /fully/qualified/path/to/setpath.pl "$1"; if [ $? == 0 ]; then . $HOME/.setpath.out; echo "$1 updated."; fi };