comparison lisp/comint.el @ 79178:4577723dbc65

Chris Moore <christopher.ian.moore at gmail.com> (comint-password-prompt-regexp): Handle `[sudo] password'-style prompt.
author Glenn Morris <rgm@gnu.org>
date Tue, 23 Oct 2007 07:10:41 +0000
parents aa7aba8d6e83
children c5f06cb9fa56
comparison
equal deleted inserted replaced
79177:3aa5f50b34c0 79178:4577723dbc65
332 ;; AIX puts the name of the person being su'd to in front of the prompt. 332 ;; AIX puts the name of the person being su'd to in front of the prompt.
333 ;; kinit prints a prompt like `Password for devnull@GNU.ORG: '. 333 ;; kinit prints a prompt like `Password for devnull@GNU.ORG: '.
334 ;; ksu prints a prompt like `Kerberos password for devnull/root@GNU.ORG: '. 334 ;; ksu prints a prompt like `Kerberos password for devnull/root@GNU.ORG: '.
335 ;; ssh-add prints a prompt like `Enter passphrase: '. 335 ;; ssh-add prints a prompt like `Enter passphrase: '.
336 ;; plink prints a prompt like `Passphrase for key "root@GNU.ORG": '. 336 ;; plink prints a prompt like `Passphrase for key "root@GNU.ORG": '.
337 ;; Ubuntu's sudo prompts like `[sudo] password for user:'
337 ;; Some implementations of passwd use "Password (again)" as the 2nd prompt. 338 ;; Some implementations of passwd use "Password (again)" as the 2nd prompt.
338 (defcustom comint-password-prompt-regexp 339 (defcustom comint-password-prompt-regexp
339 "\\(\\([Oo]ld \\|[Nn]ew \\|'s \\|login \\|\ 340 "\\(\\([Oo]ld \\|[Nn]ew \\|'s \\|login \\|\
340 Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|^\\)\ 341 Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)\
341 \[Pp]assword\\( (again)\\)?\\|\ 342 \[Pp]assword\\( (again)\\)?\\|\
342 pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\ 343 pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\
343 \\(?:, try again\\)?\\(?: for [^:]+\\)?:\\s *\\'" 344 \\(?:, try again\\)?\\(?: for [^:]+\\)?:\\s *\\'"
344 "*Regexp matching prompts for passwords in the inferior process. 345 "*Regexp matching prompts for passwords in the inferior process.
345 This is used by `comint-watch-for-password-prompt'." 346 This is used by `comint-watch-for-password-prompt'."