anyone know how to check mail using bash.
i tried using MAIL and MAILPATH but they don't seem to work.
i wanted to use something like this:
# /bin/mail -E
# switch ( $status )
# case 0:
# echo "there's new mail."
# breaksw;
# case 2:
# echo "no new mail."
# breaksw;
# endsw
i used this with a c shell
any suggestions?