alternative is to place a colon-separated list of
editors in the editor variable. v\bvi\bis\bsu\bud\bdo\bo will then only
use the EDITOR or VISUAL if they match a value
- specified in editor. This flag is _\bo_\bf_\bf by default.
+ specified in editor. If the _\be_\bn_\bv_\b__\br_\be_\bs_\be_\bt flag is enabled,
+ the EDITOR and/or VISUAL environment variables must be
+ present in the _\be_\bn_\bv_\b__\bk_\be_\be_\bp list for the _\be_\bn_\bv_\b__\be_\bd_\bi_\bt_\bo_\br flag to
+ function when v\bvi\bis\bsu\bud\bdo\bo is invoked via s\bsu\bud\bdo\bo. This flag is
+ _\bo_\bf_\bf by default.
env_reset If set, s\bsu\bud\bdo\bo will run the command in a minimal
environment containing the TERM, PATH, HOME, MAIL,
editor A colon (`:') separated list of editors allowed to be
used with v\bvi\bis\bsu\bud\bdo\bo. v\bvi\bis\bsu\bud\bdo\bo will choose the editor that
- matches the user's EDITOR environment variable if
- possible, or the first editor in the list that exists
- and is executable. The default is _\bv_\bi.
+ matches the user's EDITOR or VISUAL environment
+ variable if possible, or the first editor in the list
+ that exists and is executable. Note that the EDITOR
+ and VISUAL environment variables are not preserved by
+ default when the _\be_\bn_\bv_\b__\br_\be_\bs_\be_\bt option is enabled. The
+ default is _\bv_\bi.
iolog_dir The top-level directory to use when constructing the
path name for the input/output log directory. Only
file distributed with s\bsu\bud\bdo\bo or https://www.sudo.ws/license.html for
complete details.
-Sudo 1.8.16 January 20, 2016 Sudo 1.8.16
+Sudo 1.8.17 January 20, 2016 Sudo 1.8.17
\fRVISUAL\fR
if they match a value specified in
\fReditor\fR.
+If the
+\fIenv_reset\fR
+flag is enabled, the
+\fREDITOR\fR
+and/or
+\fRVISUAL\fR
+environment variables must be present in the
+\fIenv_keep\fR
+list for the
+\fIenv_editor\fR
+flag to function when
+\fBvisudo\fR
+is invoked via
+\fBsudo\fR.
This flag is
\fI@env_editor@\fR
by default.
\fBvisudo\fR
will choose the editor that matches the user's
\fREDITOR\fR
+or
+\fRVISUAL\fR
environment variable if possible, or the first editor in the
list that exists and is executable.
+Note that the
+\fREDITOR\fR
+and
+\fRVISUAL\fR
+environment variables are not preserved by default when the
+\fIenv_reset\fR
+option is enabled.
The default is
\fI@editor@\fR.
.TP 18n
.Ev VISUAL
if they match a value specified in
.Li editor .
+If the
+.Em env_reset
+flag is enabled, the
+.Ev EDITOR
+and/or
+.Ev VISUAL
+environment variables must be present in the
+.Em env_keep
+list for the
+.Em env_editor
+flag to function when
+.Nm visudo
+is invoked via
+.Nm sudo .
This flag is
.Em @env_editor@
by default.
.Nm visudo
will choose the editor that matches the user's
.Ev EDITOR
+or
+.Ev VISUAL
environment variable if possible, or the first editor in the
list that exists and is executable.
+Note that the
+.Ev EDITOR
+and
+.Ev VISUAL
+environment variables are not preserved by default when the
+.Em env_reset
+option is enabled.
The default is
.Pa @editor@ .
.It iolog_dir