GNU bug report logs -
#13124
add non-English regexps to comint-password-prompt-regexp for sudo password prompt
Previous Next
Reported by: arne_bab <at> web.de
Date: Sat, 8 Dec 2012 13:29:01 UTC
Severity: normal
Found in version 24.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 13124 <at> debbugs.gnu.org (full text, mbox):
Arne Babenhauserheide wrote:
> Mine looks like this:
>
> arne <at> 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 *\\'"))
This bug report was last modified 11 years and 130 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.