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

Colin Law clanlaw at googlemail.com
Fri Nov 11 17:29:53 UTC 2011


On 11 November 2011 16:59, Peng Yu <pengyu.ut at gmail.com> wrote:
> 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?

Just to check, if you run /usr/bin/editor does it run vim?

Colin




More information about the ubuntu-users mailing list