aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1999-06-27 21:39:42 +0000
committerKarl Heuer <[email protected]>1999-06-27 21:39:42 +0000
commit40c2d410caefa84fa1702550510d2c9b7d75d830 (patch)
treea3879da2ca3dd52f24d0280479010b4ef92b2f80
parented41826a33ebc9045d175d85467c8d51c0d87609 (diff)
(comint-password-prompt-regexp): Allow "(again)".
-rw-r--r--lisp/comint.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 09af0704a3..a8019f8ee3 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -281,8 +281,10 @@ This variable is buffer-local."
;; kinit prints a prompt like `Password for [email protected]: '.
;; ksu prints a prompt like `Kerberos password for devnull/[email protected]: '.
;; ssh-add prints a prompt like `Enter passphrase: '.
+;; Some implementations of passwd use "Password (again)" as the 2nd prompt.
(defcustom comint-password-prompt-regexp
- "\\(\\([Oo]ld \\|[Nn]ew \\|Kerberos \\|'s \\|login \\|^\\)[Pp]assword\\|pass phrase\\|Enter passphrase\\)\
+ "\\(\\([Oo]ld \\|[Nn]ew \\|Kerberos \\|'s \\|login \\|^\\)\
+[Pp]assword\\( (again)\\)?\\|pass phrase\\|Enter passphrase\\)\
\\( for [^@ \t\n]+@[^@ \t\n]+\\)?:\\s *\\'"
"*Regexp matching prompts for passwords in the inferior process.
This is used by `comint-watch-for-password-prompt'."