This version works better for me. I get prompted when logging into an
IRIX box running sshd 1.2.20 from an OpenBSD box using ssh v 1.2.26.
This is good because that is what should have happened before.
Also, a strange thing: I get prompted twice for the pw. The first
time, the prompt shows up in Emacs minibuff. The second time, ssh
evidently isn't attached to a tty and so it pops up a graphical
prompt.
I did modify the regex, though:
--- lisp/rcp.el.orig Mon Oct 25 02:37:58 1999
+++ lisp/rcp.el Mon Oct 25 12:31:27 1999
@@ -2227,7 +2227,7 @@
(setq found (rcp-wait-for-regexp
p 30
;; CCC adjust regexp here?
- (format "\\(%s\\)\\|\\(.*[pP]assword: *$\\)"
+ (format "\\(%s\\)\\|\\(.*[pP]ass[pw][oh]r[ad]s?e?.*: *$\\)"
shell-prompt-pattern)))
(unless found
(pop-to-buffer (buffer-name))
--
Asking for efficiency and adaptability in the same program is like
asking for a beautiful and modest wife.
-- Gerald M. Weinberg, The Psychology of Computer Programming