GNU bug report logs - #40051
26.3; comint-password-prompt-regexp

Previous Next

Package: emacs;

Reported by: Lutz Weber <lutweb <at> tutanota.com>

Date: Fri, 13 Mar 2020 14:33:01 UTC

Severity: normal

Found in version 26.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40051 in the body.
You can then email your comments to 40051 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#40051; Package emacs. (Fri, 13 Mar 2020 14:33:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lutz Weber <lutweb <at> tutanota.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 13 Mar 2020 14:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lutz Weber <lutweb <at> tutanota.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.3; comint-password-prompt-regexp
Date: Fri, 13 Mar 2020 09:01:40 +0100 (CET)
In Emacs 26.3 in shell-mode with OpenBSD 6.6 with the doas command I am
being asked for a password.  The password entered is not hidden.

The workaround is to run this:
(require 'comint)
(setq comint-password-prompt-regexp
      (concat comint-password-prompt-regexp
              "\\|^.*doas.*password:\\s *\\'"))

This might be added to the defaults.  Thank you.


In GNU Emacs 26.3 (build 1, x86_64-unknown-openbsd, GTK+ Version 3.24.12)
of 2019-10-12 built on amd64-2.ports.openbsd.org
Windowing system distributor 'The X.Org Foundation', version 11.0.12005000
Recent messages:
Checking 57 files in /usr/local/share/emacs/26.3/lisp/calendar...
Checking 87 files in /usr/local/share/emacs/26.3/lisp/calc...
Checking 105 files in /usr/local/share/emacs/26.3/lisp/obsolete...
Checking for load-path shadows...done
Mark set
report-emacs-bug-hook: No text entered in bug report
C-c ESC is undefined
i is undefined
C-c M-i is undefined
Making completion list...
Quit
 Configured using:
'configure --build=amd64-unknown-openbsd --without-sound
--with-x-toolkit=gtk3 --prefix=/usr/local --sysconfdir=/etc
--mandir=/usr/local/man --infodir=/usr/local/info --localstatedir=/var
--disable-silent-rules --disable-gtk-doc 'CFLAGS=-O2 -pipe -fno-pie'
CPPFLAGS=-I/usr/local/include 'LDFLAGS=-L/usr/local/lib -nopie ''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK DBUS GSETTINGS GLIB NOTIFY GNUTLS
LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
XDBE XIM THREADS LCMS2

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Grep

Minor modes in effect:
  shell-dirtrack-mode: t
  display-battery-mode: t
  display-time-mode: t
  show-paren-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
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa
derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils grep compile em-unix
em-term term disp-table ehelp em-script em-prompt em-ls em-hist em-pred
em-glob em-dirs em-cmpl em-basic em-banner em-alias esh-var esh-io
esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module
esh-mode esh-util elec-pair newlisp-mode ob-perl ob-shell shell
org-element avl-tree generator org advice org-macro org-footnote
org-pcomplete 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-exp ob-comint ob-core ob-eval org-compat org-macs
org-loaddefs format-spec cal-menu calendar cal-loaddefs dired-x dired
dired-loaddefs ls-lisp comint ansi-color ring ert pp find-func ewoc
debug edmacro kmacro cl-extra help-mode parse-time cl battery time paren
finder-inf package easymenu epg-config url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv
cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray 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 threads dbusbind kqueue lcms2 dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 188214 14713)
(symbols 48 30170 1)
(miscs 40 97 211)
(strings 32 61668 2037)
(string-bytes 1 1851071)
(vectors 16 27623)
(vector-slots 8 642347 14862)
(floats 8 143 306)
(intervals 56 608 177)
(buffers 992 15))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40051; Package emacs. (Fri, 03 Apr 2020 00:45:01 GMT) Full text and rfc822 format available.

Message #8 received at 40051 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Lutz Weber <lutweb <at> tutanota.com>
Cc: 40051 <at> debbugs.gnu.org
Subject: Re: bug#40051: 26.3; comint-password-prompt-regexp
Date: Thu, 02 Apr 2020 20:44:45 -0400
Lutz Weber <lutweb <at> tutanota.com> writes:

> In Emacs 26.3 in shell-mode with OpenBSD 6.6 with the doas command I am
> being asked for a password.  The password entered is not hidden.
>
> The workaround is to run this:
> (require 'comint)
> (setq comint-password-prompt-regexp
>       (concat comint-password-prompt-regexp
>               "\\|^.*doas.*password:\\s *\\'"))
>
> This might be added to the defaults.  Thank you.

Could you show what the prompt you receive looks like?





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40051; Package emacs. (Sun, 05 Apr 2020 01:25:02 GMT) Full text and rfc822 format available.

Message #11 received at 40051 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: 40051 <at> debbugs.gnu.org
Cc: Lutz Weber <lutweb <at> tutanota.com>
Subject: Re: bug#40051: 26.3; comint-password-prompt-regexp
Date: Sat, 04 Apr 2020 21:24:38 -0400
[Message part 1 (text/plain, inline)]
[forwarding to list, please use "Reply All" to keep 40051 <at> debbugs.gnu.org on Cc]

[Message part 2 (message/rfc822, inline)]
From: Lutz Weber <lutweb <at> tutanota.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Subject: Re: bug#40051: 26.3; comint-password-prompt-regexp
Date: Fri, 3 Apr 2020 21:21:47 +0200 (CEST)
Thank you for the reply:

* both samples show shell-mode (OpenBSD default shell KSH_VERSION='@(#)PD KSH v5.2.14 99/07/13.2')

** without workaround "emacs -Q":

user <at> leno1:~$ doas /sbin/mount /usb
doas /sbin/mount /usb
doas (user <at> leno1.example.home) password: PASSWORD

** with workaround:

user <at> leno1:~$ doas /sbin/mount /usb
doas /sbin/mount /usb
doas (user <at> leno1.example.home) password: (shows dots in minibuffer only as expected)

Just let me know when I can be of further help.
Lutz

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40051; Package emacs. (Wed, 11 Aug 2021 12:32:01 GMT) Full text and rfc822 format available.

Message #14 received at 40051 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 40051 <at> debbugs.gnu.org, Lutz Weber <lutweb <at> tutanota.com>
Subject: Re: bug#40051: 26.3; comint-password-prompt-regexp
Date: Wed, 11 Aug 2021 14:31:30 +0200
Noam Postavsky <npostavs <at> gmail.com> writes:

> * both samples show shell-mode (OpenBSD default shell
> KSH_VERSION='@(#)PD KSH v5.2.14 99/07/13.2')
>
> ** without workaround "emacs -Q":
>
> user <at> leno1:~$ doas /sbin/mount /usb
> doas /sbin/mount /usb
> doas (user <at> leno1.example.home) password: PASSWORD

I see that "doas" has been added to `comint-password-prompt-regexp' in
more recent Emacs versions, so I'm going to go ahead and guess that this
has been fixed by now, and I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 40051 <at> debbugs.gnu.org and Lutz Weber <lutweb <at> tutanota.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 11 Aug 2021 12:32:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 09 Sep 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.