From unknown Sun Aug 17 23:33:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25596 <25596@debbugs.gnu.org> To: bug#25596 <25596@debbugs.gnu.org> Subject: Status: comint-password-prompt-regexp and non-English locales Reply-To: bug#25596 <25596@debbugs.gnu.org> Date: Mon, 18 Aug 2025 06:33:43 +0000 retitle 25596 comint-password-prompt-regexp and non-English locales reassign 25596 emacs submitter 25596 Rahul Martim Juliato severity 25596 minor tag 25596 confirmed thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 31 20:49:02 2017 Received: (at submit) by debbugs.gnu.org; 1 Feb 2017 01:49:02 +0000 Received: from localhost ([127.0.0.1]:52715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYk2g-0005PL-3J for submit@debbugs.gnu.org; Tue, 31 Jan 2017 20:49:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYk2d-0005Oq-N9 for submit@debbugs.gnu.org; Tue, 31 Jan 2017 20:49:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYk2W-00058Q-8X for submit@debbugs.gnu.org; Tue, 31 Jan 2017 20:48:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58670) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cYk2W-00058J-4h for submit@debbugs.gnu.org; Tue, 31 Jan 2017 20:48:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYk2T-0004S7-GT for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 20:48:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYk2Q-00055J-99 for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 20:48:49 -0500 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:36529) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYk2Q-000554-2W for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 20:48:46 -0500 Received: by mail-qt0-x243.google.com with SMTP id h53so25934968qth.3 for ; Tue, 31 Jan 2017 17:48:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=9B3qJMn6B2IjTkfhboGjClfjw6sZXCgKSNu9Q0KcQh8=; b=VpY5yImq+D/BHofMV2AnCyFLEbWuuUVn6J9D8YvsVpjJrgOs796YPoztv0Fcf+rBkE dmg8nfpMxevTGgrxr3eySVqxKBMKxR0qr9Q0qr/jGkrNoFB1ZXe9zcuZjb89PyMGUFAB wF9O8lYHKWE27DhdmrJ+Q9q+JiAFsDW/9ErpVQ2vdyomWs2445Wgk8hFnwm4rEkp4KCK 1616BWuuDGLYwJFANq0YUoSc6NTTebfarajUVsOzEzYo2HE9X9wOvkRpyF7xM1v0BhLX kIa/h6lC3awUtM9eXVaySSzeei5FQMATu6TWewq+RwU09329msQSCaNOdNy/oWxDnEOT Bxuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=9B3qJMn6B2IjTkfhboGjClfjw6sZXCgKSNu9Q0KcQh8=; b=P7gFfpBgw9h27ZvH68sj6vQ6qABAuJYrGkYCEZiGs5kR5S8e1JaYgzCtz30CvKESGm xGfIRgXdHrDFjj2pedwSeOzS6nZAkxKkhbK0L+jZFmlmr+WZ0xLXtebAvhY//FSTEbQS 0d/2GVxVn16p2LYK6Jy/akZaHU323qEwS9JFIReN8eSLvbouCxDZUhma6T32vgMmb6zU IwwqOe1xynHsoFciit4jGJjsbsr+T9YLUsnIt1na8JMOuM+8oDF3eTv7u/qNXTXIitM3 9TNzzff/w5YRfGnB/BGGwIgYTldEXiP1pmVC99u+rjMBr7EStq/CaBSD0HxwCiz8OLzU 867Q== X-Gm-Message-State: AIkVDXLA/cxGcSHRJy8/GfCqHlonGx1f3i8911jVILkSdb0FKP41MEWNBXnAr/iqKlYKHQ== X-Received: by 10.200.39.212 with SMTP id x20mr304778qtx.109.1485913724891; Tue, 31 Jan 2017 17:48:44 -0800 (PST) Received: from alarm ([187.180.145.199]) by smtp.gmail.com with ESMTPSA id t35sm17031945qtc.40.2017.01.31.17.48.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Jan 2017 17:48:44 -0800 (PST) From: Rahul Martim Juliato X-Google-Original-From: Rahul Martim Juliato To: bug-gnu-emacs@gnu.org Subject: 25.1; Password not hidden Date: Tue, 31 Jan 2017 23:48:37 -0200 Message-ID: <86wpdaisui.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) As tryed to solve on #emacs (irc.freenode.org) Hello. M-x shell does not hides my password. I already have: (add-hook + 'comint-output-filter-functions 'comint-watch-for-password-prompt) in my .emacs file. But no deal. Lionyx: what is the form of the prompt? [23:32] twb: Thanks! Lionyx: M-x shell is a "dumb" terminal emulator. That means it does not support the app saying + "please don't show the input to this next prompt". Instead it looks for specific prompts like + "password:" and hides them on the emacs side. [23:33] Lionyx: m-x ansi-term twb: i'm trying to sudo Lionyx: if you use M-x ansi term RET, which is a "vt100" terminal emulator, the app can ask to hide + password input Lionyx: ah OK that sounds like an old bug that has been fixed for a few years Lionyx: is your emacs very old? Like 24.1ish? [23:34] tws yes. i have seen the regex that looks for pass hide, and it seems to be ok. twb: my emacs is 25 Interesting. Can you tell me the exact prompt string that sudo is using? twb: eshell hides the password m-x term also does the job twb: it's in brazillian portuguese [eng@alarm scripts]$ sudo ls [23:35] [sudo] senha para eng: thats it. OK You can add that to the comint-password-prompt-regexp variable But it should already be ignored because of the "[sudo]" And because "senha" is in password-word-equivalents [23:36] Lionyx: can you reproduce this problem with "emacs -Q -f shell" ? [23:37] Lionyx: if so, I think this is a bug in emacs, and you should report it [23:38] I thougth m-x term was supposed to show password tho [23:40] John[Lisbeth]: I think not, but I do not use M-x [ansi-]term RET myself, so I'm not very sure [23:41] ansi-term definitely should hide the passowrd but it sounds like Lionyx is using m-x shell which is just a text file [23:42] twb: also not hiding the password with emacs -Q -f shell Lionyx: are you indeed typing m-x shell? John[Lisbeth]: that's what -f shell does fsbot: tell Lionyx about reportit Lionyx: Found a bug? Good. Tell the world about it by using M-x report-emacs-bug In GNU Emacs 25.1.1 (armv7l-unknown-linux-gnueabihf, GTK+ Version 3.22.5) of 2016-12-24 built on leming Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: pt_BR.utf8 locale-coding-system: utf-8-unix Major mode: ERC Minor modes in effect: erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t gpm-mouse-mode: t shell-dirtrack-mode: t xterm-mouse-mode: t display-time-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: C-c RET RET is undefined No match Quit [3 times] Making completion list... [2 times] No match Making completion list... [2 times] Sole completion Mark set next-line: End of buffer Saved text from " Hello. M-x shell does not hides" Load-path shadows: /home/eng/.emacs.d/elpa/flim-20161210.1728/hex-util hides /usr/share/emacs/25.1/lisp/hex-util /home/eng/.emacs.d/elpa/flim-20161210.1728/md4 hides /usr/share/emacs/25.1/lisp/md4 /home/eng/.emacs.d/elpa/org-20170124/org-habit hides /usr/share/emacs/25.1/lisp/org/org-habit /home/eng/.emacs.d/elpa/org-20170124/org-macs hides /usr/share/emacs/25.1/lisp/org/org-macs /home/eng/.emacs.d/elpa/org-20170124/ob-sql hides /usr/share/emacs/25.1/lisp/org/ob-sql /home/eng/.emacs.d/elpa/org-20170124/org-info hides /usr/share/emacs/25.1/lisp/org/org-info /home/eng/.emacs.d/elpa/org-20170124/ob-core hides /usr/share/emacs/25.1/lisp/org/ob-core /home/eng/.emacs.d/elpa/org-20170124/ob-table hides /usr/share/emacs/25.1/lisp/org/ob-table /home/eng/.emacs.d/elpa/org-20170124/ob-awk hides /usr/share/emacs/25.1/lisp/org/ob-awk /home/eng/.emacs.d/elpa/org-20170124/ox-html hides /usr/share/emacs/25.1/lisp/org/ox-html /home/eng/.emacs.d/elpa/org-20170124/ob-picolisp hides /usr/share/emacs/25.1/lisp/org/ob-picolisp /home/eng/.emacs.d/elpa/org-20170124/org-docview hides /usr/share/emacs/25.1/lisp/org/org-docview /home/eng/.emacs.d/elpa/org-20170124/ob-css hides /usr/share/emacs/25.1/lisp/org/ob-css /home/eng/.emacs.d/elpa/org-20170124/ox-org hides /usr/share/emacs/25.1/lisp/org/ox-org /home/eng/.emacs.d/elpa/org-20170124/ob-ditaa hides /usr/share/emacs/25.1/lisp/org/ob-ditaa /home/eng/.emacs.d/elpa/org-20170124/org-rmail hides /usr/share/emacs/25.1/lisp/org/org-rmail /home/eng/.emacs.d/elpa/org-20170124/org-mouse hides /usr/share/emacs/25.1/lisp/org/org-mouse /home/eng/.emacs.d/elpa/org-20170124/ob-shen hides /usr/share/emacs/25.1/lisp/org/ob-shen /home/eng/.emacs.d/elpa/org-20170124/ob-js hides /usr/share/emacs/25.1/lisp/org/ob-js /home/eng/.emacs.d/elpa/org-20170124/ox-publish hides /usr/share/emacs/25.1/lisp/org/ox-publish /home/eng/.emacs.d/elpa/org-20170124/org-gnus hides /usr/share/emacs/25.1/lisp/org/org-gnus /home/eng/.emacs.d/elpa/org-20170124/org-bibtex hides /usr/share/emacs/25.1/lisp/org/org-bibtex /home/eng/.emacs.d/elpa/org-20170124/ob-scala hides /usr/share/emacs/25.1/lisp/org/ob-scala /home/eng/.emacs.d/elpa/org-20170124/org-footnote hides /usr/share/emacs/25.1/lisp/org/org-footnote /home/eng/.emacs.d/elpa/org-20170124/ob-ocaml hides /usr/share/emacs/25.1/lisp/org/ob-ocaml /home/eng/.emacs.d/elpa/org-20170124/org-element hides /usr/share/emacs/25.1/lisp/org/org-element /home/eng/.emacs.d/elpa/org-20170124/ox-beamer hides /usr/share/emacs/25.1/lisp/org/ox-beamer /home/eng/.emacs.d/elpa/org-20170124/org-plot hides /usr/share/emacs/25.1/lisp/org/org-plot /home/eng/.emacs.d/elpa/org-20170124/org-mhe hides /usr/share/emacs/25.1/lisp/org/org-mhe /home/eng/.emacs.d/elpa/org-20170124/ob-C hides /usr/share/emacs/25.1/lisp/org/ob-C /home/eng/.emacs.d/elpa/org-20170124/org hides /usr/share/emacs/25.1/lisp/org/org /home/eng/.emacs.d/elpa/org-20170124/ob-io hides /usr/share/emacs/25.1/lisp/org/ob-io /home/eng/.emacs.d/elpa/org-20170124/org-list hides /usr/share/emacs/25.1/lisp/org/org-list /home/eng/.emacs.d/elpa/org-20170124/ob-fortran hides /usr/share/emacs/25.1/lisp/org/ob-fortran /home/eng/.emacs.d/elpa/org-20170124/org-eshell hides /usr/share/emacs/25.1/lisp/org/org-eshell /home/eng/.emacs.d/elpa/org-20170124/ob-sass hides /usr/share/emacs/25.1/lisp/org/ob-sass /home/eng/.emacs.d/elpa/org-20170124/ob-ledger hides /usr/share/emacs/25.1/lisp/org/ob-ledger /home/eng/.emacs.d/elpa/org-20170124/ob-org hides /usr/share/emacs/25.1/lisp/org/ob-org /home/eng/.emacs.d/elpa/org-20170124/ob-makefile hides /usr/share/emacs/25.1/lisp/org/ob-makefile /home/eng/.emacs.d/elpa/org-20170124/ob-latex hides /usr/share/emacs/25.1/lisp/org/ob-latex /home/eng/.emacs.d/elpa/org-20170124/ob-ruby hides /usr/share/emacs/25.1/lisp/org/ob-ruby /home/eng/.emacs.d/elpa/org-20170124/org-version hides /usr/share/emacs/25.1/lisp/org/org-version /home/eng/.emacs.d/elpa/org-20170124/ob-python hides /usr/share/emacs/25.1/lisp/org/ob-python /home/eng/.emacs.d/elpa/org-20170124/ob-lilypond hides /usr/share/emacs/25.1/lisp/org/ob-lilypond /home/eng/.emacs.d/elpa/org-20170124/ob-matlab hides /usr/share/emacs/25.1/lisp/org/ob-matlab /home/eng/.emacs.d/elpa/org-20170124/ox-icalendar hides /usr/share/emacs/25.1/lisp/org/ox-icalendar /home/eng/.emacs.d/elpa/org-20170124/ob-sqlite hides /usr/share/emacs/25.1/lisp/org/ob-sqlite /home/eng/.emacs.d/elpa/org-20170124/ox-ascii hides /usr/share/emacs/25.1/lisp/org/ox-ascii /home/eng/.emacs.d/elpa/org-20170124/org-agenda hides /usr/share/emacs/25.1/lisp/org/org-agenda /home/eng/.emacs.d/elpa/org-20170124/org-feed hides /usr/share/emacs/25.1/lisp/org/org-feed /home/eng/.emacs.d/elpa/org-20170124/org-colview hides /usr/share/emacs/25.1/lisp/org/org-colview /home/eng/.emacs.d/elpa/org-20170124/ob-screen hides /usr/share/emacs/25.1/lisp/org/ob-screen /home/eng/.emacs.d/elpa/org-20170124/org-indent hides /usr/share/emacs/25.1/lisp/org/org-indent /home/eng/.emacs.d/elpa/org-20170124/org-entities hides /usr/share/emacs/25.1/lisp/org/org-entities /home/eng/.emacs.d/elpa/org-20170124/ob hides /usr/share/emacs/25.1/lisp/org/ob /home/eng/.emacs.d/elpa/org-20170124/ob-dot hides /usr/share/emacs/25.1/lisp/org/ob-dot /home/eng/.emacs.d/elpa/org-20170124/org-mobile hides /usr/share/emacs/25.1/lisp/org/org-mobile /home/eng/.emacs.d/elpa/org-20170124/ox hides /usr/share/emacs/25.1/lisp/org/ox /home/eng/.emacs.d/elpa/org-20170124/ob-R hides /usr/share/emacs/25.1/lisp/org/ob-R /home/eng/.emacs.d/elpa/org-20170124/ob-lisp hides /usr/share/emacs/25.1/lisp/org/ob-lisp /home/eng/.emacs.d/elpa/org-20170124/ob-mscgen hides /usr/share/emacs/25.1/lisp/org/ob-mscgen /home/eng/.emacs.d/elpa/org-20170124/ob-comint hides /usr/share/emacs/25.1/lisp/org/ob-comint /home/eng/.emacs.d/elpa/org-20170124/org-table hides /usr/share/emacs/25.1/lisp/org/org-table /home/eng/.emacs.d/elpa/org-20170124/ob-perl hides /usr/share/emacs/25.1/lisp/org/ob-perl /home/eng/.emacs.d/elpa/org-20170124/org-pcomplete hides /usr/share/emacs/25.1/lisp/org/org-pcomplete /home/eng/.emacs.d/elpa/org-20170124/org-irc hides /usr/share/emacs/25.1/lisp/org/org-irc /home/eng/.emacs.d/elpa/org-20170124/org-loaddefs hides /usr/share/emacs/25.1/lisp/org/org-loaddefs /home/eng/.emacs.d/elpa/org-20170124/ob-octave hides /usr/share/emacs/25.1/lisp/org/ob-octave /home/eng/.emacs.d/elpa/org-20170124/ob-exp hides /usr/share/emacs/25.1/lisp/org/ob-exp /home/eng/.emacs.d/elpa/org-20170124/ob-scheme hides /usr/share/emacs/25.1/lisp/org/ob-scheme /home/eng/.emacs.d/elpa/org-20170124/ox-latex hides /usr/share/emacs/25.1/lisp/org/ox-latex /home/eng/.emacs.d/elpa/org-20170124/org-archive hides /usr/share/emacs/25.1/lisp/org/org-archive /home/eng/.emacs.d/elpa/org-20170124/ob-haskell hides /usr/share/emacs/25.1/lisp/org/ob-haskell /home/eng/.emacs.d/elpa/org-20170124/org-macro hides /usr/share/emacs/25.1/lisp/org/org-macro /home/eng/.emacs.d/elpa/org-20170124/org-clock hides /usr/share/emacs/25.1/lisp/org/org-clock /home/eng/.emacs.d/elpa/org-20170124/org-faces hides /usr/share/emacs/25.1/lisp/org/org-faces /home/eng/.emacs.d/elpa/org-20170124/ob-calc hides /usr/share/emacs/25.1/lisp/org/ob-calc /home/eng/.emacs.d/elpa/org-20170124/org-timer hides /usr/share/emacs/25.1/lisp/org/org-timer /home/eng/.emacs.d/elpa/org-20170124/ob-ref hides /usr/share/emacs/25.1/lisp/org/ob-ref /home/eng/.emacs.d/elpa/org-20170124/org-protocol hides /usr/share/emacs/25.1/lisp/org/org-protocol /home/eng/.emacs.d/elpa/org-20170124/org-id hides /usr/share/emacs/25.1/lisp/org/org-id /home/eng/.emacs.d/elpa/org-20170124/org-ctags hides /usr/share/emacs/25.1/lisp/org/org-ctags /home/eng/.emacs.d/elpa/org-20170124/ob-asymptote hides /usr/share/emacs/25.1/lisp/org/ob-asymptote /home/eng/.emacs.d/elpa/org-20170124/org-install hides /usr/share/emacs/25.1/lisp/org/org-install /home/eng/.emacs.d/elpa/org-20170124/org-compat hides /usr/share/emacs/25.1/lisp/org/org-compat /home/eng/.emacs.d/elpa/org-20170124/org-crypt hides /usr/share/emacs/25.1/lisp/org/org-crypt /home/eng/.emacs.d/elpa/org-20170124/org-inlinetask hides /usr/share/emacs/25.1/lisp/org/org-inlinetask /home/eng/.emacs.d/elpa/org-20170124/ob-keys hides /usr/share/emacs/25.1/lisp/org/ob-keys /home/eng/.emacs.d/elpa/org-20170124/ob-maxima hides /usr/share/emacs/25.1/lisp/org/ob-maxima /home/eng/.emacs.d/elpa/org-20170124/ox-md hides /usr/share/emacs/25.1/lisp/org/ox-md /home/eng/.emacs.d/elpa/org-20170124/org-src hides /usr/share/emacs/25.1/lisp/org/org-src /home/eng/.emacs.d/elpa/org-20170124/ox-texinfo hides /usr/share/emacs/25.1/lisp/org/ox-texinfo /home/eng/.emacs.d/elpa/org-20170124/ob-eval hides /usr/share/emacs/25.1/lisp/org/ob-eval /home/eng/.emacs.d/elpa/org-20170124/ob-tangle hides /usr/share/emacs/25.1/lisp/org/ob-tangle /home/eng/.emacs.d/elpa/org-20170124/ox-man hides /usr/share/emacs/25.1/lisp/org/ox-man /home/eng/.emacs.d/elpa/org-20170124/ob-plantuml hides /usr/share/emacs/25.1/lisp/org/ob-plantuml /home/eng/.emacs.d/elpa/org-20170124/ob-java hides /usr/share/emacs/25.1/lisp/org/ob-java /home/eng/.emacs.d/elpa/org-20170124/ox-odt hides /usr/share/emacs/25.1/lisp/org/ox-odt /home/eng/.emacs.d/elpa/org-20170124/ob-gnuplot hides /usr/share/emacs/25.1/lisp/org/ob-gnuplot /home/eng/.emacs.d/elpa/org-20170124/ob-clojure hides /usr/share/emacs/25.1/lisp/org/ob-clojure /home/eng/.emacs.d/elpa/org-20170124/ob-lob hides /usr/share/emacs/25.1/lisp/org/ob-lob /home/eng/.emacs.d/elpa/org-20170124/org-attach hides /usr/share/emacs/25.1/lisp/org/org-attach /home/eng/.emacs.d/elpa/org-20170124/org-capture hides /usr/share/emacs/25.1/lisp/org/org-capture /home/eng/.emacs.d/elpa/org-20170124/org-datetree hides /usr/share/emacs/25.1/lisp/org/org-datetree /home/eng/.emacs.d/elpa/org-20170124/org-w3m hides /usr/share/emacs/25.1/lisp/org/org-w3m /home/eng/.emacs.d/elpa/org-20170124/ob-emacs-lisp hides /usr/share/emacs/25.1/lisp/org/ob-emacs-lisp /home/eng/.emacs.d/elpa/org-20170124/org-bbdb hides /usr/share/emacs/25.1/lisp/org/org-bbdb /home/eng/.emacs.d/elpa/flim-20161210.1728/ntlm hides /usr/share/emacs/25.1/lisp/net/ntlm /home/eng/.emacs.d/elpa/flim-20161210.1728/sasl-cram hides /usr/share/emacs/25.1/lisp/net/sasl-cram /home/eng/.emacs.d/elpa/flim-20161210.1728/hmac-def hides /usr/share/emacs/25.1/lisp/net/hmac-def /home/eng/.emacs.d/elpa/flim-20161210.1728/sasl-ntlm hides /usr/share/emacs/25.1/lisp/net/sasl-ntlm /home/eng/.emacs.d/elpa/flim-20161210.1728/sasl-digest hides /usr/share/emacs/25.1/lisp/net/sasl-digest /home/eng/.emacs.d/elpa/flim-20161210.1728/hmac-md5 hides /usr/share/emacs/25.1/lisp/net/hmac-md5 /home/eng/.emacs.d/elpa/flim-20161210.1728/sasl hides /usr/share/emacs/25.1/lisp/net/sasl Features: (shadow sort mail-extr emacsbug sendmail term ehelp erc-list erc-menu erc-join erc-ring erc-networks erc-pcomplete erc-track erc-match erc-button erc-fill erc-stamp erc-netsplit erc-goodies erc erc-backend erc-compat thingatpt pp pcmpl-unix gnus-async gnus-ml disp-table qp timezone mm-archive url-http url-gw url-cache url-auth url-handlers utf-7 nndraft nnmh nnrss xml mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message idna dired rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader mail-utils wid-edit t-mouse ox-ioslide f dash s ox-html5slide ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-element avl-tree org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-comint tramp tramp-compat auth-source cl-seq eieio eieio-core cl-macs gnus-util mm-util help-fns mail-prsvr password-cache tramp-loaddefs trampver ucs-normalize shell pcomplete advice comint ansi-color ring org-loaddefs find-func cal-menu calendar cal-loaddefs ob-exp ob-core org-compat ob-eval org-macs format-spec termbright-theme finder-inf info package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date xt-mouse time battery cus-start cus-load mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 8 487333 46929) (symbols 24 45656 0) (miscs 20 108 685) (strings 16 109598 11677) (string-bytes 1 3283223) (vectors 8 68108) (vector-slots 4 1781189 48810) (floats 8 512 813) (intervals 28 2930 613) (buffers 520 28)) From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 01 12:48:48 2017 Received: (at 25596) by debbugs.gnu.org; 1 Feb 2017 17:48:48 +0000 Received: from localhost ([127.0.0.1]:53602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYz1U-0007d9-I6 for submit@debbugs.gnu.org; Wed, 01 Feb 2017 12:48:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYz1T-0007cw-Gj for 25596@debbugs.gnu.org; Wed, 01 Feb 2017 12:48:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYz1N-0007Zo-LV for 25596@debbugs.gnu.org; Wed, 01 Feb 2017 12:48:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYz1M-0007ZC-6Y; Wed, 01 Feb 2017 12:48:40 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cYz1K-0008Jq-8H; Wed, 01 Feb 2017 12:48:38 -0500 From: Glenn Morris To: Rahul Martim Juliato Subject: Re: bug#25596: 25.1; Password not hidden References: <86wpdaisui.fsf@gmail.com> X-Spook: bce global Vince Foster Response Flu Help Antiviral X-Ran: U>mFeGp~flX7^<.GO;#p3h;} X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 01 Feb 2017 12:48:38 -0500 In-Reply-To: <86wpdaisui.fsf@gmail.com> (Rahul Martim Juliato's message of "Tue, 31 Jan 2017 23:48:37 -0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25596 Cc: 25596@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Irc logs are hard to read. Please give a minimal, self-contained example starting from emacs -Q that shows the problem. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 02 15:54:12 2017 Received: (at 25596) by debbugs.gnu.org; 2 Feb 2017 20:54:12 +0000 Received: from localhost ([127.0.0.1]:54279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZOOS-0006Nq-10 for submit@debbugs.gnu.org; Thu, 02 Feb 2017 15:54:12 -0500 Received: from mail-qt0-f194.google.com ([209.85.216.194]:35853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZOOQ-0006Nc-A3 for 25596@debbugs.gnu.org; Thu, 02 Feb 2017 15:54:10 -0500 Received: by mail-qt0-f194.google.com with SMTP id h53so6596045qth.3 for <25596@debbugs.gnu.org>; Thu, 02 Feb 2017 12:54:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=I51+ao7MtZBOTlBsQiZGZau5fyK0bIDOoN2KaL1Huc8=; b=EbafnUb2iTwhl/+oD9x288kUyPrs4HW3JWuXGjWlUuQdr1kisF052gRdCsMCwtBTfc obFY+LpT9Zf2Bd9+jpkzaNbLO7mwaK7HqnXon8Eaoeq3cwghHeFQQqSEGx4+SHauIT4I xqE8fhNwERcGLQyM4GBdP12CZeT1GUtu4rkdK0077lCDGwvUAzECxYIgyaSFb+Zn3tXc Mkn6wbthSaW9CUqr6D3QvmNMABLqHRTDy5AhXUw4XSaOmL7vzG8zOX9QeIEIFyK4UXxF NTOPDgL82+Qe2Ot8Bj+DP1QV/lA4oi3JZJIecj5rV3ipNxlquQoyo29BeVoks8hiegp1 +KVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=I51+ao7MtZBOTlBsQiZGZau5fyK0bIDOoN2KaL1Huc8=; b=fDxmhdKtNBfl7geEM2E+Q/zXfjGkzvtYaKyzHqaDTQKuR6JpIrhx6vI93kwl2z6yE8 tJZcxNBmG7fGskW2xFFwPKz0jC6uoIfW84+HJhaDGXTnukX0zIBJ4RoWE1OUkvnny9Pe ljuOGgla2pz3FZif3fcEW5JoXaU50Bun2GGVZg1+kFEfkisZbbhjIBLtjRQ3dbKovTEo 7Q3ub7iSboCTZOEq19ToBj7nZl7wemf6lcZuLU9s2ppICchIoAv9NLKwRU0ZharpfYgl Al6wLs53OTUcKFmv00/H+LnIgkUC/X9Ag4fzw/GcYBuJC0wqEPx/ziE7qfr44bldl5nr hI8w== X-Gm-Message-State: AIkVDXLosTv9FYtQj+ZhBGq7nnIsyGV5Bz42HLarXVWALhDjHdd6k2E7xDxJ04+67m8WFA== X-Received: by 10.200.47.46 with SMTP id j43mr9808474qta.178.1486068844735; Thu, 02 Feb 2017 12:54:04 -0800 (PST) Received: from alarm ([186.223.37.67]) by smtp.gmail.com with ESMTPSA id u29sm22453058qki.4.2017.02.02.12.54.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Feb 2017 12:54:03 -0800 (PST) From: Rahul Martim Juliato X-Google-Original-From: Rahul Martim Juliato To: Glenn Morris Subject: Re: bug#25596: 25.1; Password not hidden References: <86wpdaisui.fsf@gmail.com> Date: Thu, 02 Feb 2017 18:53:54 -0200 In-Reply-To: (Glenn Morris's message of "Wed, 01 Feb 2017 12:48:38 -0500") Message-ID: <86k29848m5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 25596 Cc: Rahul Martim Juliato , 25596@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) I'm on arch Linux, armv7, samsumg crhomebook. I launch emacs with: emacs -Q -f shell inside of it: sudo ls And then shell asks me for the password not hiding it when I type. I already tried a "solution" i found on-line by adding this to my .emacs file: (add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt) And altough I'm using a brazillian portuguese system, sudo should recognize the portuguese word "senha" as a passwork equivalent, or at least recognize that the line asks for password with "[sudo]". I also tryied do C the lang bash variables, the problem remains. As a side note, passord IS hidden with e-shell and ansi-term. Thanks. Glenn Morris writes: From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 23 17:01:05 2017 Received: (at 25596) by debbugs.gnu.org; 23 Feb 2017 22:01:05 +0000 Received: from localhost ([127.0.0.1]:53312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch1Rg-00068F-P0 for submit@debbugs.gnu.org; Thu, 23 Feb 2017 17:01:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch1Rf-00067d-Qo for 25596@debbugs.gnu.org; Thu, 23 Feb 2017 17:01:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ch1RZ-0000vo-C5 for 25596@debbugs.gnu.org; Thu, 23 Feb 2017 17:00:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ch1RV-0000uT-7o; Thu, 23 Feb 2017 17:00:53 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ch1RT-00006f-Ge; Thu, 23 Feb 2017 17:00:51 -0500 From: Glenn Morris To: Rahul Martim Juliato Subject: Re: bug#25596: 25.1; Password not hidden References: <86wpdaisui.fsf@gmail.com> <86k29848m5.fsf@gmail.com> X-Spook: S Key Vince Foster cryptanalysis Disaster assistance X-Ran: 2w|*$V~oWw5s2gh[C~HE@@=I;PqnL;t9Ob{_]~/&z8~h3Sw]sCA>cX,6R@7/yz%%z>td;L X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 23 Feb 2017 17:00:51 -0500 In-Reply-To: <86k29848m5.fsf@gmail.com> (Rahul Martim Juliato's message of "Thu, 02 Feb 2017 18:53:54 -0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25596 Cc: 25596@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Rahul Martim Juliato wrote: > emacs -Q -f shell > > inside of it: > sudo ls > > And then shell asks me for the password not hiding it when I type. Thanks. I see that in your initial report, you said the prompt was: [sudo] senha para eng: > I already tried a "solution" i found on-line by adding this to my .emacs file: > > (add-hook 'comint-output-filter-functions > 'comint-watch-for-password-prompt) This is already done by default. > And altough I'm using a brazillian portuguese system, sudo should > recognize the portuguese word "senha" as a passwork equivalent, or at > least recognize that the line asks for password with "[sudo]". Emacs has the variable password-word-equivalents, which includes "senha" by default. The problem is that comint-password-prompt-regexp does not translate "for" into other languages ("para" in this case). From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 23 17:02:18 2017 Received: (at control) by debbugs.gnu.org; 23 Feb 2017 22:02:18 +0000 Received: from localhost ([127.0.0.1]:53316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch1Ss-0006AG-4t for submit@debbugs.gnu.org; Thu, 23 Feb 2017 17:02:18 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch1Sp-0006A1-Bv for control@debbugs.gnu.org; Thu, 23 Feb 2017 17:02:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ch1Sj-0001FH-Ln for control@debbugs.gnu.org; Thu, 23 Feb 2017 17:02:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ch1Sj-0001F9-Ih for control@debbugs.gnu.org; Thu, 23 Feb 2017 17:02:09 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ch1Sj-0001hK-9y for control@debbugs.gnu.org; Thu, 23 Feb 2017 17:02:09 -0500 Subject: control message for bug 25596 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 23 Feb 2017 17:02:09 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) retitle 25596 comint-password-prompt-regexp and non-English locales tag 25596 confirmed From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 14:40:06 2017 Received: (at 25596) by debbugs.gnu.org; 1 Mar 2017 19:40:06 +0000 Received: from localhost ([127.0.0.1]:34830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjA6Y-0008QG-B6 for submit@debbugs.gnu.org; Wed, 01 Mar 2017 14:40:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjA6X-0008Pj-Jb for 25596@debbugs.gnu.org; Wed, 01 Mar 2017 14:40:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjA6R-0007T9-PF for 25596@debbugs.gnu.org; Wed, 01 Mar 2017 14:40:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjA6R-0007T3-LL for 25596@debbugs.gnu.org; Wed, 01 Mar 2017 14:39:59 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cjA6R-0001Tf-Al for 25596@debbugs.gnu.org; Wed, 01 Mar 2017 14:39:59 -0500 Resent-Message-ID: <22711.9102.990771.119619@gnu.org> Resent-Date: Wed, 1 Mar 2017 14:39:58 -0500 Resent-From: Glenn Morris Resent-To: 25596@debbugs.gnu.org Bcc: rgm@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:message-id:user-agent:mime-version; bh=VGf5mIfOdg8NxwimGvadzNjW3Z9L5hHhrXn3/s55LBo=; b=Z7qPKcK9mh/v+svwiiDjGrcJ+6H4MrIqB9feFzr82mAy/GJqw8x7G6UJLZDQzalG7m h38xwGKfxTLCu519WOnN3aqFOMBVeQ2O4c8Y1UKJO8kAj+OC1jjUNkvXtD4IGC18xyy6 bH6eMV8gYHjl4f5GGPUjmqg7egpa7GuFvr4Yero2ykyucHa3P+iRKibeWY6f1S0WWuhE pnMdYkzmYjqDVdxs6PFA6QyQt6KZDKj/zfVhubccmZoPdc5SrOUK7nWaT0w4iH4pZBi9 hlQsJb0jZlZiE8/oSoYeGOhuhXW0+F7U2Xnxx47VKTvdX1tYyHj/CR73Q0Ya4qDdGtCN oiuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:message-id :user-agent:mime-version; bh=VGf5mIfOdg8NxwimGvadzNjW3Z9L5hHhrXn3/s55LBo=; b=VxauxRgjVocI5xTWEWLmpn+RaTLK6+EUds3G0a/KLyhC0yWfu3/GyBd35It1uMm2K9 F9Q5XMySJpoP0YWUImIawsGBIVvlpY08RhCoH0vL9qf7UfmU1tYDJd6B5456OuFoTIAI uJN2GtQENPgSAT3TV767gDUDArZozm6ySwBj1NgI9jG23et/8rJeuL+BPgSCWzAw1o98 oimnYSwTFOk1TLomiYec9OwkaOwEk4aSnBsctXy+IIYQ1235emdDUKQ3yPKAzwfZqpnN Lhip/AGLBHaji0zYMrVZkLTxzTCTOt75W3/fRdkzMxku3c/bNuRa+Ruq0AfB9GBInDrv +XkQ== X-Gm-Message-State: AMke39ml2hrpAHTyTeNUXvTQpkXnMsnb6YUKZh2jINKy2dqYpBfRtGIQWDQhyY+ej2V5JA== X-Received: by 10.55.75.2 with SMTP id y2mr10626652qka.39.1488389242848; Wed, 01 Mar 2017 09:27:22 -0800 (PST) X-Google-Original-From: Rahul Martim Juliato References: <86wpdaisui.fsf@gmail.com> <86k29848m5.fsf@gmail.com> Message-ID: <86h93c6h70.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] Date: Wed, 01 Mar 2017 14:27:15 -0300 From: Rahul Martim Juliato To: Glenn Morris , 25596@debbugs.gnu.org Subject: Re: bug#25596: 25.1; Password not hidden User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25596 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) So I tested this way: emacs -Q -f shell export LC_ALL="C" sudo ls And BANG! password is prompted in a hidden way on the minibuffer! (sudo presents its prompt in english) So, is comint-password-prompt-regexp bugged? I recall that eshell works fine. Also, it seems that recognizes sudo OR other stuff (I'm not the best regex reader by the way). I also tried on my Debian notebook, and the password for sudo is prompted in english, so there's no problem there. Glenn Morris writes: > Rahul Martim Juliato wrote: > >> emacs -Q -f shell >> >> inside of it: >> sudo ls >> >> And then shell asks me for the password not hiding it when I type. > > Thanks. I see that in your initial report, you said the prompt was: > > [sudo] senha para eng: > >> I already tried a "solution" i found on-line by adding this to my .emacs file: >> >> (add-hook 'comint-output-filter-functions >> 'comint-watch-for-password-prompt) > > This is already done by default. > >> And altough I'm using a brazillian portuguese system, sudo should >> recognize the portuguese word "senha" as a passwork equivalent, or at >> least recognize that the line asks for password with "[sudo]". > > Emacs has the variable password-word-equivalents, which includes "senha" > by default. > > The problem is that comint-password-prompt-regexp does not translate > "for" into other languages ("para" in this case). From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 28 11:37:48 2017 Received: (at control) by debbugs.gnu.org; 28 Apr 2017 15:37:48 +0000 Received: from localhost ([127.0.0.1]:44877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d47xs-0000U0-DH for submit@debbugs.gnu.org; Fri, 28 Apr 2017 11:37:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d47xr-0000Tp-6U for control@debbugs.gnu.org; Fri, 28 Apr 2017 11:37:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d47xk-0003bk-RF for control@debbugs.gnu.org; Fri, 28 Apr 2017 11:37:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d47xk-0003bg-O0 for control@debbugs.gnu.org; Fri, 28 Apr 2017 11:37:40 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1d47xk-0002nM-FJ for control@debbugs.gnu.org; Fri, 28 Apr 2017 11:37:40 -0400 Subject: control message for bug 26698 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 28 Apr 2017 11:37:40 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) forcemerge 25596 26698 From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 28 16:20:02 2017 Received: (at 25596-done) by debbugs.gnu.org; 28 Apr 2017 20:20:02 +0000 Received: from localhost ([127.0.0.1]:45096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4CN0-0000zh-Im for submit@debbugs.gnu.org; Fri, 28 Apr 2017 16:20:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4CMy-0000zA-RV for 25596-done@debbugs.gnu.org; Fri, 28 Apr 2017 16:20:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d4CMs-0003kr-Uu for 25596-done@debbugs.gnu.org; Fri, 28 Apr 2017 16:19:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4CMs-0003kn-RM for 25596-done@debbugs.gnu.org; Fri, 28 Apr 2017 16:19:54 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1d4CMs-0000uU-Dw; Fri, 28 Apr 2017 16:19:54 -0400 From: Glenn Morris To: 25596-done@debbugs.gnu.org Subject: Re: bug#25596: 25.1; Password not hidden References: <86wpdaisui.fsf@gmail.com> <86k29848m5.fsf@gmail.com> X-Spook: Crash kilderkin Antiviral cybercash National preparedness X-Ran: 4)4]U}|5~|d/P6sdr4Qf~n`$*)l9=3+?US!om/nqq$skqCr'5y-)E_Sf%hhvM4U/vD+~]: X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 28 Apr 2017 16:19:53 -0400 In-Reply-To: (Glenn Morris's message of "Thu, 23 Feb 2017 17:00:51 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25596-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Version: 26.1 commit 6a3f331 Date: Fri Apr 28 16:17:27 2017 -0400 Broaden comint-password-prompt-regexp =20=20=20=20 * lisp/comint.el (comint-password-prompt-regexp): Broaden the regexp, for non-English locales. (Bug#26698) diff --git a/lisp/comint.el b/lisp/comint.el index a01ecd3..51b6591 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -362,7 +362,8 @@ This variable is buffer-local." " +\\)" "\\(?:" (regexp-opt password-word-equivalents) "\\|Response\\)" "\\(?:\\(?:, try\\)? *again\\| (empty for no passphrase)\\| (again)\\)?" - "\\(?: for .+\\)?[:=EF=BC=9A=E1=9F=96]\\s *\\'") + ;; "[[:alpha:]]" used to be "for", which fails to match non-English. + "\\(?: [[:alpha:]]+ .+\\)?[:=EF=BC=9A=E1=9F=96]\\s *\\'") "Regexp matching prompts for passwords in the inferior process. This is used by `comint-watch-for-password-prompt'." :version "26.1" From unknown Sun Aug 17 23:33:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 27 May 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 11:36:00 2017 Received: (at control) by debbugs.gnu.org; 27 Oct 2017 15:36:00 +0000 Received: from localhost ([127.0.0.1]:37551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e86fw-0004Db-3M for submit@debbugs.gnu.org; Fri, 27 Oct 2017 11:36:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37181) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e86fu-0004DH-Ho for control@debbugs.gnu.org; Fri, 27 Oct 2017 11:35:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e86fc-0001Fl-6c for control@debbugs.gnu.org; Fri, 27 Oct 2017 11:35:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e86fb-0001FQ-Va for control@debbugs.gnu.org; Fri, 27 Oct 2017 11:35:40 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1e86fb-0000tP-PI for control@debbugs.gnu.org; Fri, 27 Oct 2017 11:35:39 -0400 Subject: control message for bug 29028 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 27 Oct 2017 11:35:39 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) unarchive 25596 forcemerge 25596 29028 From unknown Sun Aug 17 23:33:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 25 Nov 2017 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 16 16:12:33 2018 Received: (at control) by debbugs.gnu.org; 16 Mar 2018 20:12:33 +0000 Received: from localhost ([127.0.0.1]:37309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewviK-0007ST-QM for submit@debbugs.gnu.org; Fri, 16 Mar 2018 16:12:32 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewviJ-0007SH-27 for control@debbugs.gnu.org; Fri, 16 Mar 2018 16:12:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewviD-00015D-CP for control@debbugs.gnu.org; Fri, 16 Mar 2018 16:12:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewviD-00014y-9d for control@debbugs.gnu.org; Fri, 16 Mar 2018 16:12:25 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ewviD-0006bU-0f for control@debbugs.gnu.org; Fri, 16 Mar 2018 16:12:25 -0400 Subject: control message for bug 30838 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 16 Mar 2018 16:12:25 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) unarchive 25596 forcemerge 25596 30838 From unknown Sun Aug 17 23:33:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 14 Apr 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator