2009/10/2 Arthur D. <spinal...@mail.ru>:
>> Go to LFS, build it all, build emacs, set EDITOR to emacs, and run
>> sudo visudo. Please. I have a rather good guess that you'll be,
>> amazingly, using the default that was set at build time for the sane
>> default editor, in LFS's case vim (whether called by that or the vi
>> symlink to it), that the distro creators chose.
>
> That's right. But there are some reasons why visudo called so (do you see
> that short VI?), so the user should expect it to run using vim if it's
> present on system and the sudo is configured by default. That was put-up
> by sudo creator in vanilla package, though it's configured in compile time.
>
> OK. That default behaviour was changed.
> Without any notification, except bash comment, in sudo ebuild.
> Do you consider that to be right?
>
> --
> Best regards, Spinal

Since the upstream default and the, clearly stated multiple places
(and equally clearly stated chances of it changing in the near
future), distro default differ, yes. It shouldn't be strange that a
package, when it's out of options (and given the stripping of
environment done by sudo itself, it very much is in the given
circumstances), uses the distro-defined defaults. I repeat myself from
before... every Gentoo system has vi, there just isn't a direct
symlink with that name to busybox. And.. it's called so because it
uses a visual editor, which is all "vi" in vi/vim means and I'd
presume is all it really means in visudo's name. That the package
upstream uses vi by default goes back to the days when the two base
options were vi and emacs... and let's face it, visudo is far easier
to type than emacssudo. Nano is a visual editor, emacs, joe, pico..
all of those are too. Interestingly, it *could* use a line, rather
than visual, editor, if that were set as the default... but I get the
feeling nearly everyone here would be wholly lost using ed (a
perfectly valid and capable editor, incidentally). As a counter
argument to it defaulting to using vi if vi/vim is installed ... if I
run a server with 50 users, 48 of which use emacs, one of which uses
vim, and I choose to use pico, why should I be forced to use vi for it
by default just because I have vim to satisfy someone else's desires?

--
Poison [BLX]
Joshua M. Murphy

Reply via email to