From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.bugs Subject: bug#13124: 24.1; shell-mode does not hide sudo password prompts Date: Sat, 29 Dec 2012 11:22:02 +0100 Organization: EUR Message-ID: <87mwwxp391.fsf@gmail.com> References: <87zk1owu6p.fsf@web.de> <1624103.WhpMEyUi7x@fluss> <2651799.fvDoQSk02G@fluss> <877gocj6rn.fsf@gnu.org> <87k3sbjyau.fsf@gnu.org> <87txrfsd0y.fsf@gmx.de> <87k3s1fgv2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1356776597 19700 80.91.229.3 (29 Dec 2012 10:23:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2012 10:23:17 +0000 (UTC) Cc: 13124@debbugs.gnu.org, Arne Babenhauserheide , Michael Albinus To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 29 11:23:32 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TotZh-0000Dv-OS for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 11:23:29 +0100 Original-Received: from localhost ([::1]:51649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TotZS-00027e-Vh for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 05:23:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TotZN-00027U-Hr for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 05:23:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TotZJ-0001Db-6V for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 05:23:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TotZJ-0001DX-3k for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 05:23:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TotaE-0000Nr-Fe for bug-gnu-emacs@gnu.org; Sat, 29 Dec 2012 05:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vitalie Spinu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Dec 2012 10:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13124 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13124-submit@debbugs.gnu.org id=B13124.13567765871396 (code B ref 13124); Sat, 29 Dec 2012 10:24:02 +0000 Original-Received: (at 13124) by debbugs.gnu.org; 29 Dec 2012 10:23:07 +0000 Original-Received: from localhost ([127.0.0.1]:35614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TotZL-0000MT-2o for submit@debbugs.gnu.org; Sat, 29 Dec 2012 05:23:07 -0500 Original-Received: from mail-wg0-f54.google.com ([74.125.82.54]:57203) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TotZJ-0000ML-0n for 13124@debbugs.gnu.org; Sat, 29 Dec 2012 05:23:05 -0500 Original-Received: by mail-wg0-f54.google.com with SMTP id fg15so5018431wgb.33 for <13124@debbugs.gnu.org>; Sat, 29 Dec 2012 02:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=Qs0KGKhl+FlpqiKaa47tPQ8fRll1KkHJUOOx/6jxZ+c=; b=kSlqFvRbScUugVxKhUCRo2ptOYtI9FHiIPvIkF9uJ7SsmxQ2d90ysNXzPDaEvY+ZmF uYnDjmjNkNUgMpFdsW2VOlMIym1My1s4BSWYOC91pS+veICI808raRggKvMbvu1WD7Xf 2Biv3TvnCVpoVSFVT6NpriM4NgHG1mQVql+kocJdJmxReeFYKYrUN4+Vb+GFNQrPg9h1 A7xtmhLMmxlRwD4QBltmum9CoTuEyVIywfM2WS1bZTGKcZj8iDej3jTBP1gJDmT2W9sv Lrp9Cimkr/VMmI/Ht8yD90oFflkQR10SYNS4FRQkY5Di52YFafQMyOzHCyrmqrHpTkgU Uoow== X-Received: by 10.194.82.168 with SMTP id j8mr57320002wjy.15.1356776526271; Sat, 29 Dec 2012 02:22:06 -0800 (PST) Original-Received: from localhost (i108036.upc-i.chello.nl. [62.195.108.36]) by mx.google.com with ESMTPS id i2sm65865009wiw.3.2012.12.29.02.22.03 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Dec 2012 02:22:04 -0800 (PST) In-Reply-To: <87k3s1fgv2.fsf@gnu.org> (Chong Yidong's message of "Sat, 29 Dec 2012 15:38:09 +0800") User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.2.91 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69146 Archived-At: >> Chong Yidong >> 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)\\| (aga= in)\\)?\ CY> ! \\(?: for [^:]+\\)?[:=EF=BC=9A=E1=9F=96]\\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 =E5=AF=86=E7=A0=81: " and "[sudo] =E5=AF= =86=E7=A0=81 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