unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40051: 26.3; comint-password-prompt-regexp
@ 2020-03-13  8:01 Lutz Weber via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2020-04-03  0:44 ` Noam Postavsky
  2020-04-05  1:24 ` Noam Postavsky
  0 siblings, 2 replies; 4+ messages in thread
From: Lutz Weber via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2020-03-13  8:01 UTC (permalink / raw)
  To: 40051


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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#40051: 26.3; comint-password-prompt-regexp
  2020-03-13  8:01 bug#40051: 26.3; comint-password-prompt-regexp Lutz Weber via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2020-04-03  0:44 ` Noam Postavsky
  2020-04-05  1:24 ` Noam Postavsky
  1 sibling, 0 replies; 4+ messages in thread
From: Noam Postavsky @ 2020-04-03  0:44 UTC (permalink / raw)
  To: Lutz Weber; +Cc: 40051

Lutz Weber <lutweb@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?






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#40051: 26.3; comint-password-prompt-regexp
  2020-03-13  8:01 bug#40051: 26.3; comint-password-prompt-regexp Lutz Weber via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2020-04-03  0:44 ` Noam Postavsky
@ 2020-04-05  1:24 ` Noam Postavsky
  2021-08-11 12:31   ` Lars Ingebrigtsen
  1 sibling, 1 reply; 4+ messages in thread
From: Noam Postavsky @ 2020-04-05  1:24 UTC (permalink / raw)
  To: 40051; +Cc: Lutz Weber

[-- Attachment #1: Type: text/plain, Size: 82 bytes --]

[forwarding to list, please use "Reply All" to keep 40051@debbugs.gnu.org on Cc]


[-- Attachment #2: Type: message/rfc822, Size: 862 bytes --]

From: Lutz Weber <lutweb@tutanota.com>
To: Noam Postavsky <npostavs@gmail.com>
Subject: Re: bug#40051: 26.3; comint-password-prompt-regexp
Date: Fri, 3 Apr 2020 21:21:47 +0200 (CEST)
Message-ID: <M40UUZf--3-2@tutanota.com>

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@leno1:~$ doas /sbin/mount /usb
doas /sbin/mount /usb
doas (user@leno1.example.home) password: PASSWORD

** with workaround:

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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#40051: 26.3; comint-password-prompt-regexp
  2020-04-05  1:24 ` Noam Postavsky
@ 2021-08-11 12:31   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-11 12:31 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: 40051, Lutz Weber

Noam Postavsky <npostavs@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@leno1:~$ doas /sbin/mount /usb
> doas /sbin/mount /usb
> doas (user@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-11 12:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-13  8:01 bug#40051: 26.3; comint-password-prompt-regexp Lutz Weber via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-04-03  0:44 ` Noam Postavsky
2020-04-05  1:24 ` Noam Postavsky
2021-08-11 12:31   ` Lars Ingebrigtsen

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