diff options
| author | Karl Heuer | 1999-06-27 21:39:42 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-06-27 21:39:42 +0000 |
| commit | 40c2d410caefa84fa1702550510d2c9b7d75d830 (patch) | |
| tree | a3879da2ca3dd52f24d0280479010b4ef92b2f80 | |
| parent | ed41826a33ebc9045d175d85467c8d51c0d87609 (diff) | |
| download | emacs-40c2d410caefa84fa1702550510d2c9b7d75d830.tar.gz emacs-40c2d410caefa84fa1702550510d2c9b7d75d830.zip | |
(comint-password-prompt-regexp): Allow "(again)".
| -rw-r--r-- | lisp/comint.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 09af0704a38..a8019f8ee31 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -281,8 +281,10 @@ This variable is buffer-local." | |||
| 281 | ;; kinit prints a prompt like `Password for devnull@GNU.ORG: '. | 281 | ;; kinit prints a prompt like `Password for devnull@GNU.ORG: '. |
| 282 | ;; ksu prints a prompt like `Kerberos password for devnull/root@GNU.ORG: '. | 282 | ;; ksu prints a prompt like `Kerberos password for devnull/root@GNU.ORG: '. |
| 283 | ;; ssh-add prints a prompt like `Enter passphrase: '. | 283 | ;; ssh-add prints a prompt like `Enter passphrase: '. |
| 284 | ;; Some implementations of passwd use "Password (again)" as the 2nd prompt. | ||
| 284 | (defcustom comint-password-prompt-regexp | 285 | (defcustom comint-password-prompt-regexp |
| 285 | "\\(\\([Oo]ld \\|[Nn]ew \\|Kerberos \\|'s \\|login \\|^\\)[Pp]assword\\|pass phrase\\|Enter passphrase\\)\ | 286 | "\\(\\([Oo]ld \\|[Nn]ew \\|Kerberos \\|'s \\|login \\|^\\)\ |
| 287 | [Pp]assword\\( (again)\\)?\\|pass phrase\\|Enter passphrase\\)\ | ||
| 286 | \\( for [^@ \t\n]+@[^@ \t\n]+\\)?:\\s *\\'" | 288 | \\( for [^@ \t\n]+@[^@ \t\n]+\\)?:\\s *\\'" |
| 287 | "*Regexp matching prompts for passwords in the inferior process. | 289 | "*Regexp matching prompts for passwords in the inferior process. |
| 288 | This is used by `comint-watch-for-password-prompt'." | 290 | This is used by `comint-watch-for-password-prompt'." |