Why crontab -e doesn't use the correct editor?

Peng Yu pengyu.ut at gmail.com
Fri Nov 11 16:59:24 UTC 2011


Hi,

~$ echo $EDITOR

~$ echo $VISUAL

~$ ll /usr/bin/editor
lrwxrwxrwx 1 root root 24 2010-05-14 17:23 /usr/bin/editor ->
/etc/alternatives/editor
pengy at pengy-desktop:~$ readlink -f -e /usr/bin/editor
/usr/bin/vim.gnome

I have the above environment. But when I call run "crontab -e". nano
is invoked. I think that vim.genome should be called. I'm wondering
why the correct one is not called?

-- 
Regards,
Peng




More information about the ubuntu-users mailing list