bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1340: M-x shell-command sudo


From: David Reitter
Subject: bug#1340: M-x shell-command sudo
Date: Thu, 13 Nov 2008 15:02:25 -0500

M-x shell-command RET sudo touch /test RET

will show sudo's password prompt in the echo area which looks like a minibuffer prompt.

I think that the password prompt might be taken just as output, and the process is considered as terminated (and perhaps it does, given that it is not run in an interactive shell).

So I think shell-command behaves correctly, but it doesn't do what I intended as a user. Perhaps some sort of "sudo-shell-command" would be useful for a situation like mine, or a command that will execute the following Emacs command as super-user.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]