GNU bug report logs - #1340
M-x shell-command sudo

Previous Next

Package: emacs;

Reported by: David Reitter <david.reitter <at> gmail.com>

Date: Thu, 13 Nov 2008 20:10:04 UTC

Severity: wishlist

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: David Reitter <david.reitter <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: bug#1340: M-x shell-command sudo
Date: Thu, 13 Nov 2008 15:02:25 -0500
[Message part 1 (text/plain, inline)]
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.

[smime.p7s (application/pkcs7-signature, attachment)]

This bug report was last modified 5 years and 286 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.