]> git.eshelyaron.com Git - emacs.git/commitdiff
Add comint-password-prompt-regexp test for "zip -e ..."
authorStefan Kangas <stefan@marxist.se>
Thu, 18 Mar 2021 10:17:34 +0000 (11:17 +0100)
committerStefan Kangas <stefan@marxist.se>
Thu, 18 Mar 2021 10:26:37 +0000 (11:26 +0100)
* test/lisp/comint-tests.el (comint-testsuite-password-strings):
Add test for "zip -e ...".  (Bug#47209)

lisp/comint.el
test/lisp/comint-tests.el

index bb28db7614ac3e365014fcbee4d143e2880deb05..65072b01376a455d4b5e17da62d318cbeea0a1e2 100644 (file)
@@ -366,6 +366,8 @@ This variable is buffer-local."
 ;; OpenBSD doas prints "doas (user@host) password:".
 ;; See ert test `comint-test-password-regexp'.
 (defcustom comint-password-prompt-regexp
+  ;; When extending this, please also add a corresponding test where
+  ;; possible (see `comint-testsuite-password-strings').
   (concat
    "\\(^ *\\|"
    (regexp-opt
@@ -382,7 +384,7 @@ This variable is buffer-local."
    "\\(?: [[:alpha:]]+ .+\\)?[[:blank:]]*[::៖][[:space:]]*\\'")
   "Regexp matching prompts for passwords in the inferior process.
 This is used by `comint-watch-for-password-prompt'."
-  :version "27.1"
+  :version "28.1"
   :type 'regexp
   :group 'comint)
 
index de1bc548e188541f9b2e5b49a472b3e7f6918eaa..8a9a41f452f83704542a658aebd48b4dce2ac708 100644 (file)
@@ -44,6 +44,7 @@
     "Password (again):"
     "Enter password:"
     "Enter Auth Password:" ; OpenVPN (Bug#35724)
+    "Verify password: "    ; zip -e zipfile.zip ... (Bug#47209)
     "Mot de Passe :" ; localized (Bug#29729)
     "Passwort:") ; localized
   "List of strings that should match `comint-password-prompt-regexp'.")