[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13124: 24.1; shell-mode does not hide sudo password prompts
From: |
Vitalie Spinu |
Subject: |
bug#13124: 24.1; shell-mode does not hide sudo password prompts |
Date: |
Sat, 29 Dec 2012 11:22:02 +0100 |
User-agent: |
Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.2.91 (gnu/linux) |
>> Chong Yidong <cyd@gnu.org>
>> on Sat, 29 Dec 2012 15:38:09 +0800 wrote:
[...]
CY> :version "24.1"
CY> --- 346,354 ----
CY> "Old" "old" "New" "new" "'s" "login"
CY> "Kerberos" "CVS" "UNIX" " SMB" "LDAP" "[sudo]" "Repeat" "Bad") t)
CY> " +\\)"
CY> ! "\\(?:" (regexp-opt password-word-equivalents) "\\|Response\\)"
CY> "\\(?:\\(?:, try\\)? *again\\| (empty for no passphrase)\\|
(again)\\)?\
CY> ! \\(?: for [^:]+\\)?[::៖]\\s *\\'")
CY> "Regexp matching prompts for passwords in the inferior process.
CY> This is used by `comint-watch-for-password-prompt'."
CY> :version "24.1"
It also tries things like "Enter 密码: " and "[sudo] 密码 for
user:". For a full proof solution, one would need to translate those as
well.
I wonder if it affects the speed of the output. The regexp is 800 chars
long, and it is used in comint-output-filter-functions, which are
executed on every single output chunk (roughly 500 chars).
May be match the language code (en, ru, zh etc) against the locale, and
keep only those password-word-equivalents that match.
Vitalie
- bug#13124: 24.1; shell-mode does not hide sudo password prompts, (continued)
- bug#13124: 24.1; shell-mode does not hide sudo password prompts, Stefan Monnier, 2012/12/18
- bug#13124: 24.1; shell-mode does not hide sudo password prompts, Chong Yidong, 2012/12/21
- bug#13124: 24.1; shell-mode does not hide sudo password prompts, Stefan Monnier, 2012/12/21
- bug#13124: 24.1; shell-mode does not hide sudo password prompts, Chong Yidong, 2012/12/21
- bug#13124: 24.1; shell-mode does not hide sudo password prompts, Michael Albinus, 2012/12/21
- bug#13124: 24.1; shell-mode does not hide sudo password prompts, Chong Yidong, 2012/12/29
- bug#13124: 24.1; shell-mode does not hide sudo password prompts, Andreas Schwab, 2012/12/29
- bug#13124: 24.1; shell-mode does not hide sudo password prompts,
Vitalie Spinu <=
- bug#13124: 24.1; shell-mode does not hide sudo password prompts, Michael Albinus, 2012/12/29