sudo doesn't preserve ENV by default, so any shell settings (e.g.
set -o emacs) you might have in your ${ENV} file don't take effect.

for people who like EDITOR=vi but also like "set -o emacs" in the
shell, this is really annoying; EDITOR/VISUAL are preserved, so the
(imo horrible) /bin/ksh "feature" of changing line editing mode
depending on setting of these variables takes priority.

I'm not entirely convinced it's safe to add ENV to env_keep by
default but the only other workaround I've found (i.e. ln -s
/usr/bin/{vi,not_emacs} and setting VISUAL=/usr/bin/not_emacs)
is messy and annoying to do on multiple machines.

anyone have other ideas or comments?

Reply via email to