unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1340: M-x shell-command sudo
@ 2008-11-13 20:02 David Reitter
  2019-09-30  7:08 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: David Reitter @ 2008-11-13 20:02 UTC (permalink / raw)
  To: emacs-pretest-bug

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

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 #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#1340: M-x shell-command sudo
  2008-11-13 20:02 bug#1340: M-x shell-command sudo David Reitter
@ 2019-09-30  7:08 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-30  7:08 UTC (permalink / raw)
  To: David Reitter; +Cc: 1340

David Reitter <david.reitter@gmail.com> writes:

> 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'm unable to reproduce this bug in Emacs 27.  Instead I just get:

---
sudo: no tty present and no askpass program specified
---

So I'm guessing this is no longer relevant after ten years, and I'm
closing this bug report.  If this is still an issue, please reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-30  7:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-13 20:02 bug#1340: M-x shell-command sudo David Reitter
2019-09-30  7:08 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).