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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1340 in the body.
You can then email your comments to 1340 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1340; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to David Reitter <david.reitter <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: David Reitter <david.reitter <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 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)]

Severity set to `wishlist' from `normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Fri, 14 Nov 2008 00:15:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#1340; Package emacs. (Mon, 30 Sep 2019 07:09:01 GMT) Full text and rfc822 format available.

Message #10 received at 1340 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: David Reitter <david.reitter <at> gmail.com>
Cc: 1340 <at> debbugs.gnu.org
Subject: Re: bug#1340: M-x shell-command sudo
Date: Mon, 30 Sep 2019 09:08:30 +0200
David Reitter <david.reitter <at> 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




bug closed, send any further explanations to 1340 <at> debbugs.gnu.org and David Reitter <david.reitter <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 30 Sep 2019 07:09:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 28 Oct 2019 11:24:10 GMT) Full text and rfc822 format available.

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

Previous Next


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