On Sat, Jun 15, 2019 at 07:27:57PM -0700, Quiliro's lists wrote: > Regarding the EDITOR variable, if Guix is the installer of the needed > editor it is the only situation when this regards to Guix. > > Would you please clarify your issue?
Issue clarified up-thread: https://lists.gnu.org/archive/html/help-guix/2019-06/msg00140.html Generally, assigning the environment variable EDITOR works for visudo(*), but it appears /usr/bin/vi is hard-coded in guix's visudo as it does not acknowledge EDITOR. $ EDITOR=vim visudo ~/etc/guix/sudoers visudo: no editor found (editor path = /usr/bin/vi) David Larsson suggested using SUDO_EDITOR, however that doesn't work either: $ SUDO_EDITOR=vim visudo ~/etc/guix/sudoers visudo: no editor found (editor path = /usr/bin/vi) I'll still use visudo to check my local sudoers file on the command line, though it's more challenging to remember to check it (and the consequences of borking sudoers are severe). $ visudo --check -f ~/etc/guix/sudoers ~/etc/guix/sudoers: parsed OK I'm guessing /usr/bin/vi has been hard coded into visudo for security reasons, but it doesn't make sense if the /usr/bin/vi editor doesn't exist on Guix System. -Jeff ---- (*) Or at least it has on other system distros where nano was the default editor.