I sometimes find on a certain machine that when I change to a bash shell and try to edit the crontab with
# crontab -e
instead of getting my vi editor I just get a number returned, for example:
# crontab -e
3839
Obviously something to do with how the default editor is set in the root csh profile then moving to bash. It is fixed with:
EDITOR=vi
export EDITOR
crontab -e