Whenever I attempt to set the EDITOR environment variable, a subsequent check reveals no value has been set.
I was attempting to edit the crontab:
sudo crontab -e -u mycooluser
no crontab for mycooluser - using an empty one Error opening terminal: unknown. crontab: "/usr/bin/sensible-editor" exited with status 1
I then found this post: Setup a cronjob from commandline which suggested I change the editor used.
So I tried (including variations):
export EDITOR="/bin/nano" export EDITOR="usr/bin/nano" export EDITOR=nano
and when I execute (per this link How do I find and set my $EDITOR environment variable?):
printenv | grep EDITOR
I get nothing, a quick
printenv check also confirms that no
EDITOR variable exists in the list. To be clear, by 'nothing' I mean that on the
echo $EDITOR it prints a blank line and for
printenv | grep EDITOR nothing is printed.
Any idea why the variable isn't being set or why I can't seem to change it?
System: Ubuntu 18.04.1, Using Terminal in Webmin