On 2018-08-24 18:04:29 -0700, Chris Waters wrote:
> Blaming emacs for a problem with su which is documented by the su man
> page, though, is simply not reasonable. If you're going to insist on
> using su instead of sudo, then it's your job to vet all your
> environment variables to make sure you don't get this sort of
> well-documented side effect. Which can affect all sorts of
> programs--not just emacs.

And you're suggesting sudo while there will be the same issue. From
its man page:

     -e, --edit  Edit one or more files instead of running a command.
[...]
which is precisely what one would use if one just wants to edit a file.

[...]
                 If the specified file does not exist, it will be
                 created.  Note that unlike most commands run by
                 sudo, the editor is run with the invoking user's
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                 environment unmodified.  [...]
                 ^^^^^^^^^^^^^^^^^^^^^^

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to