unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Arne Babenhauserheide <arne_bab@web.de>
Cc: 13124@debbugs.gnu.org
Subject: bug#13124: 24.1; shell-mode does not hide sudo password prompts
Date: Mon, 10 Dec 2012 12:00:59 -0500	[thread overview]
Message-ID: <ttmwxl9704.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <1624103.WhpMEyUi7x@fluss> (Arne Babenhauserheide's message of "Mon, 10 Dec 2012 17:21:25 +0100")

Arne Babenhauserheide wrote:

> Mine looks like this:
>
> arne@fluss /mnt/eis/backups $ sudo test
> Passwort: test

I'm afraid Emacs does not not understand the word "password" in every
language out-of-the-box, so you'll have to add an entry to
comint-password-prompt-regexp that matches "Passwort". Eg

(setq comint-password-prompt-regexp
  (concat
   "\\(^ *\\|"
   (regexp-opt
    '("Enter" "enter" "Enter same" "enter same" "Enter the" "enter the"
      "Old" "old" "New" "new" "'s" "login"
      "Kerberos" "CVS" "UNIX" " SMB" "LDAP" "[sudo]" "Repeat" "Bad") t)
   " +\\)"
   (regexp-opt
    '("password" "Password" "passphrase" "Passphrase"
      "pass phrase" "Pass phrase" "Response" "Passwort"))
   "\\(?:\\(?:, try\\)? *again\\| (empty for no passphrase)\\|
  (again)\\)?\
\\(?: for [^:]+\\)?:\\s *\\'"))





  reply	other threads:[~2012-12-10 17:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-08 13:27 bug#13124: 24.1; shell-mode does not hide sudo password prompts Arne Babenhauserheide
2012-12-08 19:24 ` Glenn Morris
2012-12-10 16:21   ` Arne Babenhauserheide
2012-12-10 17:00     ` Glenn Morris [this message]
2012-12-11  0:12       ` Arne Babenhauserheide
2012-12-11  4:55         ` Glenn Morris
2012-12-11 13:42           ` Arne Babenhauserheide
2012-12-13 14:14             ` Kenichi Handa
2012-12-13 16:14               ` Arne Babenhauserheide
2012-12-18 19:54         ` Stefan Monnier
2012-12-21  5:47           ` Chong Yidong
2012-12-21 14:03             ` Stefan Monnier
2012-12-21 14:05               ` Chong Yidong
2012-12-21 14:19                 ` Michael Albinus
2012-12-29  7:38                   ` Chong Yidong
2012-12-29  8:39                     ` Andreas Schwab
2012-12-29 10:22                     ` Vitalie Spinu
2012-12-29 16:40                       ` Michael Albinus
2014-01-16 14:50                     ` Arne Babenhauserheide
2014-01-17  8:38                       ` Michael Albinus
2014-01-17 14:11                         ` Stefan Monnier
2014-01-17 14:15                           ` Michael Albinus
2014-01-17 15:07                             ` Stefan Monnier
2014-01-17 15:44                               ` Michael Albinus
2014-01-17 18:31                                 ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ttmwxl9704.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=13124@debbugs.gnu.org \
    --cc=arne_bab@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).