From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Syd Bauman Newsgroups: gmane.emacs.bugs Subject: bug#37684: 24.5; comint-password-prompt-regexp and openvpn Date: Wed, 9 Oct 2019 14:02:13 -0400 Message-ID: <23966.8357.802546.818107@paramedic.wwp.neu.edu> Reply-To: s.bauman@northeastern.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="192205"; mail-complaints-to="usenet@blaine.gmane.org" To: 37684@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 09 22:00:53 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iII8g-000ngt-Kx for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2019 22:00:50 +0200 Original-Received: from localhost ([::1]:56410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iII8e-0001RJ-Ql for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2019 16:00:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43865) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIGkm-0002q0-FP for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 14:32:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIGkk-0002NM-HB for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 14:32:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45274) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIGkk-0002NI-Ex for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 14:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iIGkk-0006nN-Ai for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 14:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Syd Bauman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Oct 2019 18:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37684 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157064591026100 (code B ref -1); Wed, 09 Oct 2019 18:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Oct 2019 18:31:50 +0000 Original-Received: from localhost ([127.0.0.1]:54095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIGkX-0006mq-9L for submit@debbugs.gnu.org; Wed, 09 Oct 2019 14:31:50 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIGI1-0003xR-V7 for submit@debbugs.gnu.org; Wed, 09 Oct 2019 14:02:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39975) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIGHz-0004kt-At for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 14:02:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIGHv-0006vu-RP for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 14:02:17 -0400 Original-Received: from neu-spf-hosts.northeastern.edu ([155.33.16.32]:53156 helo=barracuda.neu.edu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iIGHv-0006vU-Ne for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 14:02:15 -0400 X-ASG-Debug-ID: 1570644134-03dc9016b9b66fb0001-HqB3X1 Original-Received: from paramedic.wwp.neu.edu ([129.10.107.229]) by barracuda.neu.edu with ESMTP id HlMRM1yoKnqMV4vh (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 09 Oct 2019 14:02:14 -0400 (EDT) X-Barracuda-Envelope-From: s.bauman@northeastern.edu X-Barracuda-Effective-Source-IP: UNKNOWN[129.10.107.229] X-Barracuda-Apparent-Source-IP: 129.10.107.229 Original-Received: by paramedic.wwp.neu.edu (Postfix, from userid 1000) id 02B441A1014; Wed, 9 Oct 2019 14:02:13 -0400 (EDT) X-ASG-Orig-Subj: 24.5; comint-password-prompt-regexp and openvpn X-Barracuda-Connect: UNKNOWN[129.10.107.229] X-Barracuda-Start-Time: 1570644134 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://155.33.16.32:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at neu.edu X-Barracuda-Scan-Msg-Size: 10306 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.77255 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Wed, 09 Oct 2019 14:31:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:168761 Archived-At: >From `emacs -Q -nw`: 1) M-x shell 2) In *shell* buffer, issue `openvpn` 3) Password for sudo is appropriately collected in minibuffer w/o echoing, but password for openvpn is prompted for in the *shell* buffer and echoed. The prompt that is not recognized by comint-watch-for-password-prompt is "Enter Auth Password: ". 4) I have tried customizing comint-password-prompt-regexp, and if I set it to just "Enter Auth Password: ", it works in that the password is collected in the minibuffer w/o echoing. However, there are control characters fore and aft which should probably be stripped. ('^[[0;1;39m' before and '^[[0m' after the prompt characters.) Sample session ------ ------- $ sudo openvpn --config /home/syd/.config/OpenVPN/RAC_ambupro/AmbuPro.ovpn $ [sudo] password for syd: > Wed Oct 9 13:45:15 2019 OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jan 9 2019 > Wed Oct 9 13:45:15 2019 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08 $ Enter Auth Username: sbauman > ******* $ Enter Auth Password: asdf > **** In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-20 on lcy01-07, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.6 LTS Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t desktop-save-mode: t display-time-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-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: Change the state of this item. M-TAB: complete field; RET: enter value Mark set Hide or show this option. Apply settings and save for future sessions. Apply settings (for the current session only). scroll-up-command: End of buffer [2 times] C-c M-p is undefined Mark set Making completion list... [2 times] Load-path shadows: /usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-info hides /usr/local/share/emacs/site-lisp/psgml-info /usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-other hides /usr/local/share/emacs/site-lisp/psgml-other /usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-dtd hides /usr/local/share/emacs/site-lisp/psgml-dtd /usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-sysdep hides /usr/local/share/emacs/site-lisp/psgml-sysdep /usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-edit hides /usr/local/share/emacs/site-lisp/psgml-edit /usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-charent hides /usr/local/share/emacs/site-lisp/psgml-charent /usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml hides /usr/local/share/emacs/site-lisp/psgml /usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-api hides /usr/local/share/emacs/site-lisp/psgml-api /usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-ids hides /usr/local/share/emacs/site-lisp/psgml-ids /usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-parse hides /usr/local/share/emacs/site-lisp/psgml-parse /usr/local/share/emacs/24.5/site-lisp/filladapt hides /usr/share/emacs24/site-lisp/emacs-goodies-el/filladapt /usr/local/share/emacs/24.5/site-lisp/browse-kill-ring hides /usr/share/emacs24/site-lisp/emacs-goodies-el/browse-kill-ring /usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/local/share/emacs/24.5/site-lisp/css-mode hides /usr/share/emacs/24.5/lisp/textmodes/css-mode /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-enc hides /usr/share/emacs/24.5/lisp/nxml/nxml-enc /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-outln hides /usr/share/emacs/24.5/lisp/nxml/nxml-outln /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-ns hides /usr/share/emacs/24.5/lisp/nxml/nxml-ns /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-parse hides /usr/share/emacs/24.5/lisp/nxml/rng-parse /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-mode hides /usr/share/emacs/24.5/lisp/nxml/nxml-mode /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-util hides /usr/share/emacs/24.5/lisp/nxml/nxml-util /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-loc hides /usr/share/emacs/24.5/lisp/nxml/rng-loc /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-maint hides /usr/share/emacs/24.5/lisp/nxml/nxml-maint /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-nxml hides /usr/share/emacs/24.5/lisp/nxml/rng-nxml /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-pttrn hides /usr/share/emacs/24.5/lisp/nxml/rng-pttrn /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-rap hides /usr/share/emacs/24.5/lisp/nxml/nxml-rap /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-glyph hides /usr/share/emacs/24.5/lisp/nxml/nxml-glyph /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-parse hides /usr/share/emacs/24.5/lisp/nxml/nxml-parse /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-uri hides /usr/share/emacs/24.5/lisp/nxml/rng-uri /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-maint hides /usr/share/emacs/24.5/lisp/nxml/rng-maint /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/xmltok hides /usr/share/emacs/24.5/lisp/nxml/xmltok /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-dt hides /usr/share/emacs/24.5/lisp/nxml/rng-dt /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/xsd-regexp hides /usr/share/emacs/24.5/lisp/nxml/xsd-regexp /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-cmpct hides /usr/share/emacs/24.5/lisp/nxml/rng-cmpct /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-match hides /usr/share/emacs/24.5/lisp/nxml/rng-match /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-util hides /usr/share/emacs/24.5/lisp/nxml/rng-util /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-valid hides /usr/share/emacs/24.5/lisp/nxml/rng-valid /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-uchnm hides /usr/share/emacs/24.5/lisp/nxml/nxml-uchnm /usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-xsd hides /usr/share/emacs/24.5/lisp/nxml/rng-xsd /usr/local/share/emacs/24.5/site-lisp/timeclock hides /usr/share/emacs/24.5/lisp/calendar/timeclock Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode misearch multi-isearch mule-util cal-move cal-menu calendar cal-loaddefs shell pcomplete ibuf-ext package epg-config html2text jka-compr info rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-uchnm nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph xmltok view sh-script smie executable dired cus-edit cus-start cus-load wid-edit vc-dispatcher vc-svn desktop frameset warnings byte-opt bytecomp byte-compile cl-extra cconv edmacro kmacro browse-kill-ring ibuffer autoinsert filladapt time php-mode etags cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs speedbar sb-image ezimage dframe wwp-smart-return psgml-parse psgml-api psgml-ids psgml-other psgml-sysdep psgml-edit pp wwp-auto-tag advice help-fns wwp-psgml-faces sgml-mode psgml easymenu cl-macs cl gv cl-loaddefs cl-lib wwp rnc-mode imenu flymake compile comint ansi-color ring nxml-enc emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 249723 15072) (symbols 48 31315 0) (miscs 40 765 638) (strings 32 54538 8578) (string-bytes 1 1689180) (vectors 16 29254) (vector-slots 8 1072316 89977) (floats 8 161 734) (intervals 56 9225 0) (buffers 960 70) (heap 1024 83454 1259))