diff options
author | Glenn Morris <rgm@gnu.org> | 2007-10-23 07:10:56 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-10-23 07:10:56 +0000 |
commit | a6151b2c1070058fcdc9cf9021e331c1f563bc1d (patch) | |
tree | 9875b507d383f9237ae3a3bf784a5287f86e1016 /lisp/comint.el | |
parent | d6bb9d8c180f173991e3bae84a74a9d487e094f8 (diff) | |
download | emacs-a6151b2c1070058fcdc9cf9021e331c1f563bc1d.tar.gz |
Chris Moore <christopher.ian.moore at gmail.com>
(comint-password-prompt-regexp): Handle `[sudo] password'-style
prompt.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r-- | lisp/comint.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 80a42dbdbfa..ed1f38bf1a1 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -334,10 +334,11 @@ This variable is buffer-local." ;; ksu prints a prompt like `Kerberos password for devnull/root@GNU.ORG: '. ;; ssh-add prints a prompt like `Enter passphrase: '. ;; plink prints a prompt like `Passphrase for key "root@GNU.ORG": '. +;; Ubuntu's sudo prompts like `[sudo] password for user:' ;; Some implementations of passwd use "Password (again)" as the 2nd prompt. (defcustom comint-password-prompt-regexp "\\(\\([Oo]ld \\|[Nn]ew \\|'s \\|login \\|\ -Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|^\\)\ +Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)\ \[Pp]assword\\( (again)\\)?\\|\ pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\ \\(?:, try again\\)?\\(?: for [^:]+\\)?:\\s *\\'" |