unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Syd Bauman <s.bauman@northeastern.edu>
To: 37684@debbugs.gnu.org
Subject: bug#37684: 24.5; comint-password-prompt-regexp and openvpn
Date: Wed, 9 Oct 2019 14:02:13 -0400	[thread overview]
Message-ID: <23966.8357.802546.818107@paramedic.wwp.neu.edu> (raw)


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))





             reply	other threads:[~2019-10-09 18:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-09 18:02 Syd Bauman [this message]
2019-10-09 20:14 ` bug#37684: 24.5; comint-password-prompt-regexp and openvpn Stefan Kangas
2019-10-10  1:45   ` Syd Bauman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23966.8357.802546.818107@paramedic.wwp.neu.edu \
    --to=s.bauman@northeastern.edu \
    --cc=37684@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).