From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Syn=C3=A1=C4=8Dek?= Newsgroups: gmane.emacs.bugs Subject: bug#56336: 28.1.90; [28.1] Emacs prompts for password when output from async command contains "password:" Date: Fri, 01 Jul 2022 14:03:40 +0200 Message-ID: <87r13511lv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24069"; mail-complaints-to="usenet@ciao.gmane.io" To: 56336@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 01 14:14:17 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o7FXN-00063U-3k for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 14:14:17 +0200 Original-Received: from localhost ([::1]:42892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7FXL-0001vf-Nw for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 08:14:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7FXA-0001tB-1s for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 08:14:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7FX8-00021n-02 for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 08:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7FX7-0001xn-Mi for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 08:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Syn=C3=A1=C4=8Dek?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Jul 2022 12:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56336 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.16566776307515 (code B ref -1); Fri, 01 Jul 2022 12:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jul 2022 12:13:50 +0000 Original-Received: from localhost ([127.0.0.1]:36535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7FWv-0001x9-QZ for submit@debbugs.gnu.org; Fri, 01 Jul 2022 08:13:50 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7FWr-0001wx-Ew for submit@debbugs.gnu.org; Fri, 01 Jul 2022 08:13:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7FWr-0001kt-AE for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 08:13:45 -0400 Original-Received: from ip-185-149-130-112.kmenet.cz ([185.149.130.112]:38504 helo=jsynacek-home.localdomain) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7FWn-0001xf-Pi for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 08:13:45 -0400 Original-Received: from jsynacek-home (localhost [127.0.0.1]) by jsynacek-home.localdomain (Postfix) with ESMTP id 4B33F1E0225 for ; Fri, 1 Jul 2022 14:03:40 +0200 (CEST) Received-SPF: softfail client-ip=185.149.130.112; envelope-from=jan.synacek@gmail.com; helo=jsynacek-home.localdomain X-Spam_score_int: 41 X-Spam_score: 4.1 X-Spam_bar: ++++ X-Spam_report: (4.1 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, KHOP_HELO_FCRDNS=0.187, NML_ADSP_CUSTOM_MED=0.9, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL=1.522, SPOOF_GMAIL_MID=0.799, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235793 Archived-At: When the output from a command spawned with 'M-&' (async-shell-command) ends with "password:" Emacs prompts for a password. Reproducer: 0) $ cat /tmp/test.txt enter your password: 1) emacs -Q 2) Press 'M-&', enter 'cat /tmp/test.txt' as input and hit enter. 3) Emacs prompts for a password. I expect that 3) should not happen as the output is simply to stdout and no stdin input is expected. Note that the reproducer is minimal and a bit contrived but the real bug showed itself when I was running a big test suite that contained several lines ending with "password:" in its output. I've also tested this with the latest master (commit 3a4c408a7b6f3df5ca0eb4a406efbdb4899e9742), where it sometimes happens as well and sometimes you just get an error like this: Error running timer: (error "Buffer *Async Shell Command* has no process") In GNU Emacs 28.1.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-07-01 built on jsynacek-home Repository revision: 7e33618bbc07b65c36744db8e7ef219d2d942456 Repository branch: emacs-28 Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Arch Linux Configured using: 'configure --with-imagemagick --with-json --with-native-compilation --prefix=/home/jsynacek/emacs' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: windmove-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t global-so-long-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-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: /home/jsynacek/.emacs.d/elpa/transient-20220514.945/transient hides /home/jsynacek/emacs/share/emacs/28.1.90/lisp/transient Features: (shadow sort mail-extr emacsbug tabify man windmove vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs counsel xdg swiper misearch multi-isearch vc-git magit-extras face-remap dired-aux haskell-lite github-actions-lite cabal-project-lite cabal-lite dockerfile-lite the-org-mode-expansions org-element avl-tree org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 ol org-keys oc org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs vc-dir ewoc slime etags fileloop generator xref project arc-mode archive-mode noutline outline hyperspec rg files-x vc vc-dispatcher rg-info-hack rg-menu rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header ibuf-ext ibuffer ibuffer-loaddefs grep cus-edit pp cus-load wid-edit pulse magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode git-commit log-edit easy-mmode message rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor magit-mode magit-git magit-base magit-section crm dash compat-27 compat-26 jsynacek-text jsynacek-term term disp-table shell pcomplete ehelp jsynacek-project ivy delsel ivy-faces ivy-overlay colir color expand-region text-mode-expansions er-basic-expansions thingatpt expand-region-core advice expand-region-custom dired dired-loaddefs avy transient time-date format-spec compat edmacro kmacro jsynacek-misc jsynacek-elisp smtpmail sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils so-long open-color server compile text-property-search comint ansi-color ring slime-autoloads info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source eieio eieio-core eieio-loaddefs password-cache json map url-vars comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 625701 124605) (symbols 48 28318 7) (strings 32 137451 11163) (string-bytes 1 4439546) (vectors 16 65984) (vector-slots 8 1019313 83933) (floats 8 312 708) (intervals 56 17397 65) (buffers 992 42))