Crontab -e returns a number

On a solaris system I sometimes try to edit the crontab file with crontab -e and all I get in return is a number (signifying the number of characters by the ed editor I believe).

# crontab -e
4025
^C
?
The crontab file was not changed.

I need to Ctrl-D to exit.To get the ball rolling again:

EDITOR=vi;export EDITOR

Then

crontab -e

should work as expected.

Post comment