Eshell sudo不接受选项

mat*_*thk 2 emacs sudo eshell

在eshell提示符中,-E选项不能被传递.我以下面的错误结束:

$ sudo -E gmake install
-E: command not found
Run Code Online (Sandbox Code Playgroud)

有人有解决方案吗?谢谢

jrm*_*jrm 5

你正在调用Eshell内置的sudo.做一个

% which sudo
Run Code Online (Sandbox Code Playgroud)

在这里查看和查看:http://www.gnu.org/s/emacs/manual/html_node/eshell/Built_002dins.html.

你可以做

% *sudo -E gmake install
Run Code Online (Sandbox Code Playgroud)

调用通常的命令.