When I run any sudo command using shell-command—for example, (shell-command "sudo ls")
—I get the following error:
sudo: no tty present and no askpass program specified
How can I get around this? I'm guessing it should be possible to tell Emacs somehow what my askpass program is?
By the way, the correct askpass program is currently stored in the environment variable $SSH_ASKPASS
.