sudoedit doesn't respect $EDITOR
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Dear Friends,
According to the man page, sudoedit should respect and use my $EDITOR.
It doesn't. It always uses nano.
Thanks and Blessings,
Shahar
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: sudo 1.8.5p2-1ubuntu1
ProcVersionSign
Uname: Linux 3.5.0-5-generic i686
NonfreeKernelMo
ApportVersion: 2.4-0ubuntu4
Architecture: i386
Date: Tue Jul 24 18:16:54 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120421)
ProcEnviron:
TERM=screen-bce
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: sudo
UpgradeStatus: Upgraded to quantal on 2012-07-12 (11 days ago)
VisudoCheck:
/etc/sudoers: parsed OK
/etc/sudoers.
Have you tried:
sudo update-alternatives –config editor
$ sudo update-alternatives –config editor
There are 5 alternatives which provide `editor’. ——————— —————–
Selection Alternative
———
1 /usr/bin/vim
2 /bin/ed
*+ 3 /bin/nano
4 /usr/bin/vim.basic
5 /usr/bin/vim.tiny
Press enter to keep the default[*], or type selection number: