Chris Moore <christopher.ian.moore at gmail.com>

(comint-password-prompt-regexp): Handle `[sudo] password'-style
prompt.
This commit is contained in:
Glenn Morris
2007-10-23 07:10:56 +00:00
parent d6bb9d8c18
commit a6151b2c10
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2007-10-23 Chris Moore <christopher.ian.moore@gmail.com>
* comint.el (comint-password-prompt-regexp):
Handle `[sudo] password'-style prompt.
2007-10-23 Glenn Morris <rgm@gnu.org>
* progmodes/f90.el (f90-do-indent, f90-if-indent)

View File

@@ -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 *\\'"