Subject: bug#22942: emacs 25.0.90.1; "Retype" is missing from comint-password-prompt-regexp

From: Clément Pit--Claudel <[email-masked]>
Date: Tue, 8 Mar 2016 08:42:48 -0500

The pass utility (a password manager which is pretty popular on Debian derivatives) uses two password prompts:

Enter password for [account]: 
Retype password for [account]: 

Comint only detects the first one as a password prompt, but shows the second one in clear. The fix is to add “Retype” to ‘comint-password-prompt-regexp’. “Type” could be a useful addition as well. It would also be nice to add “Master” to that list, so that “Master password:” is recognized as well.

Clément.