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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Lutz Weber <lutweb@HIDDEN>; dated Fri, 13 Mar 2020 14:33:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 40051 <at> debbugs.gnu.org:


Received: (at 40051) by debbugs.gnu.org; 3 Apr 2020 00:44:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 02 20:44:56 2020
Received: from localhost ([127.0.0.1]:41005 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jKAS8-0000NV-8f
	for submit <at> debbugs.gnu.org; Thu, 02 Apr 2020 20:44:56 -0400
Received: from mail-qt1-f181.google.com ([209.85.160.181]:42714)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1jKAS6-0000N0-96
 for 40051 <at> debbugs.gnu.org; Thu, 02 Apr 2020 20:44:54 -0400
Received: by mail-qt1-f181.google.com with SMTP id t9so5132634qto.9
 for <40051 <at> debbugs.gnu.org>; Thu, 02 Apr 2020 17:44:54 -0700 (PDT)
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:content-transfer-encoding;
 bh=sh8X0/MLr003163eBC9J2d4LIysdt5l4HWK5brAOEgg=;
 b=KKa+nlxoV6OoqgudvjXq9YvkCvrAssB+IauWqpK5eLxe+oYGKH3hllzISKMtiIsuuq
 wz8KAd9JiCjVNjOaQWyY32JfZMQoidamguep0f46zFXf5xDIG0FDhxXO2q2ycWEk7HW/
 nSFrkmxMZxPyCMq1bUPCJiex5Cum04Xx8qz5rpWwahoq2Wd7NYXQyyomHVu/OVfP/rT/
 yFRTiOwesUq3YNU4vUJkQfES6wFQynegFz8/47ziwmP+g4Iu5alqZeUo+k48T9r7TWnb
 yGBEpjhB1MyqNnL3sGYMMbiAtQKAj2o6lGWgsL7YrDZ9Slus4Xes5axkkZfE6P+mW4lv
 iESQ==
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:content-transfer-encoding;
 bh=sh8X0/MLr003163eBC9J2d4LIysdt5l4HWK5brAOEgg=;
 b=Tlsb/PNCuQUSDOAeB1gft2KvhGyCeXMtXCOmLRhDdyOpqCEk+2+4vLljP30jmgJaoy
 aLosr3/lTMFBu7LitYQA2tVmS8To03kwILZxZloSWpaRhzXfLmpJv31d55c7gfB7M4Vw
 XxTcU40GfFVNlrftFvnXVoOYRDHgqxx0y6AVN65l/bLnSBRNE0VqLdzXthl0m2j8/Xos
 AxeqzemjgE8o7Ty+ErunjFfNnM0/Q+gk5XXxxYa2/ScviloxfUcLk9aPEQU0MMKOiJ72
 0uD/osjvsdnS09f6WymHapq5OaVUZGTuaPY2mbdXq7kPLHKg23qzFsb9S4fXQBFw8OTA
 RnuA==
X-Gm-Message-State: AGi0PuYAfx5n+eX4tDaHe6g5BnS7Btcq/rvi/o3O3lx3Ng0ywcewP43k
 8cqkW+yytRPmMtFTy+ChUgt8bc9a
X-Google-Smtp-Source: APiQypK3AlhI9e9YRB9gUb4tX2bAFq4I0DdkIc4okOxsHx+6mzp8DuNVPE9VtyU+4P4+VEvsbnr7Lw==
X-Received: by 2002:ac8:1628:: with SMTP id p37mr5770005qtj.277.1585874688266; 
 Thu, 02 Apr 2020 17:44:48 -0700 (PDT)
Received: from minid (cbl-45-2-119-47.yyz.frontiernetworks.ca. [45.2.119.47])
 by smtp.gmail.com with ESMTPSA id
 f71sm4871906qke.57.2020.04.02.17.44.46
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 02 Apr 2020 17:44:47 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Lutz Weber <lutweb@HIDDEN>
Subject: Re: bug#40051: 26.3; comint-password-prompt-regexp
References: <M2HtwnS--3-2@HIDDEN>
Date: Thu, 02 Apr 2020 20:44:45 -0400
In-Reply-To: <M2HtwnS--3-2@HIDDEN> (Lutz Weber's message of "Fri, 13 Mar
 2020 09:01:40 +0100 (CET)")
Message-ID: <87zhbtgzya.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40051
Cc: 40051 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Lutz Weber <lutweb@HIDDEN> writes:

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

Could you show what the prompt you receive looks like?





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40051; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Mar 2020 14:32:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 13 10:32:37 2020
Received: from localhost ([127.0.0.1]:60110 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jClMa-00053t-Jb
	for submit <at> debbugs.gnu.org; Fri, 13 Mar 2020 10:32:37 -0400
Received: from lists.gnu.org ([209.51.188.17]:33537)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lutweb@HIDDEN>) id 1jCfGO-0000fE-Of
 for submit <at> debbugs.gnu.org; Fri, 13 Mar 2020 04:01:49 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51152)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <lutweb@HIDDEN>) id 1jCfGM-0002DQ-MD
 for bug-gnu-emacs@HIDDEN; Fri, 13 Mar 2020 04:01:48 -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.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lutweb@HIDDEN>) id 1jCfGK-0004qE-ST
 for bug-gnu-emacs@HIDDEN; Fri, 13 Mar 2020 04:01:46 -0400
Received: from w4.tutanota.de ([81.3.6.165]:59864)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <lutweb@HIDDEN>) id 1jCfGJ-0004gT-QK
 for bug-gnu-emacs@HIDDEN; Fri, 13 Mar 2020 04:01:44 -0400
Received: from w3.tutanota.de (unknown [192.168.1.164])
 by w4.tutanota.de (Postfix) with ESMTP id EEC051060247
 for <bug-gnu-emacs@HIDDEN>; Fri, 13 Mar 2020 08:01:40 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1584086500; 
 s=s1; d=tutanota.com;
 h=From:To:Subject:Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:In-Reply-To:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:References:Resent-Message-ID:Resent-From:Sender:from;
 bh=u5YyTnpFdXPBsQjN8UwkM3u+rrQcK0cboPaVjmWidJg=;
 b=hS9+B7KlrTlX/0M72Skp/FEI33AlHKfcTTvA7cDZfbiPrZzW0KeOV0xlGvCb/cMK
 jjyhV7DBUIdoUo8sTZuOndz1uVAn5UmmEfs0x/7tBAnK1cKe2OiCoNWcFk6q1XLyRSF
 BwVfS6AmjewoHakfvGMAltWgrFI+OoBpM0hWnSK9Rp3bzqO+uXQVToTIIpHir4sXe3z
 3ttuuVDB5RqLguff7uG2l8Ef91bDKygmp1HyO7NUcWCoXGmVNeQ+eCaluih6Wu1hWip
 6mdaLVVdow0B81K/6GZbhsJtFBBb0XpVec05iRXNNtStEBWtpQ8wtpPn272sCK6ae9M
 BCTFszBPPg==
Date: Fri, 13 Mar 2020 09:01:40 +0100 (CET)
From: Lutz Weber <lutweb@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Message-ID: <M2HtwnS--3-2@HIDDEN>
Subject: 26.3; comint-password-prompt-regexp
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]
 [fuzzy]
X-Received-From: 81.3.6.165
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 13 Mar 2020 10:32:35 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)


In Emacs 26.3 in shell-mode with OpenBSD 6.6 with the doas command I am
being asked for a password.=C2=A0 The password entered is not hidden.

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

This might be added to the defaults.=C2=A0 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
=C2=A0Configured using:
'configure --build=3Damd64-unknown-openbsd --without-sound
--with-x-toolkit=3Dgtk3 --prefix=3D/usr/local --sysconfdir=3D/etc
--mandir=3D/usr/local/man --infodir=3D/usr/local/info --localstatedir=3D/va=
r
--disable-silent-rules --disable-gtk-doc 'CFLAGS=3D-O2 -pipe -fno-pie'
CPPFLAGS=3D-I/usr/local/include 'LDFLAGS=3D-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:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Grep

Minor modes in effect:
=C2=A0 shell-dirtrack-mode: t
=C2=A0 display-battery-mode: t
=C2=A0 display-time-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 column-number-mode: t
=C2=A0 line-number-mode: t
=C2=A0 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))





Acknowledgement sent to Lutz Weber <lutweb@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#40051; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 3 Apr 2020 01:00:01 UTC

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