From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command Resent-From: barry@python.org (Barry A. Warsaw) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Sep 2017 15:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 28500@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150574963018511 (code B ref -1); Mon, 18 Sep 2017 15:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Sep 2017 15:47:10 +0000 Received: from localhost ([127.0.0.1]:46646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtyGM-0004oV-FS for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:47:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtyGJ-0004ne-AV for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:47:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtyGD-0000OQ-1p for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:47:02 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dtyGC-0000Nx-UP for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:47:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtyGB-000104-Gk for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:47:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtyG8-0000HJ-8x for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:46:59 -0400 Received: from mail.wooz.org ([216.15.33.194]:48490) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dtyG8-0000Ex-4d for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:46:56 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.wooz.org (Postfix) with ESMTP id B6F5D142A46 for ; Mon, 18 Sep 2017 11:46:53 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mail.wooz.org Received: from mail.wooz.org ([127.0.0.1]) by localhost (mail.wooz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KWwkKnGFVh6z for ; Mon, 18 Sep 2017 11:46:53 -0400 (EDT) Received: from resist.wooz.org (resist.wooz.org [192.168.11.57]) by mail.wooz.org (Postfix) with ESMTPS id 73BB81401B3 for ; Mon, 18 Sep 2017 11:46:53 -0400 (EDT) From: barry@python.org (Barry A. Warsaw) Date: Mon, 18 Sep 2017 11:46:50 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) * M-x shell RET * Go to the shell and type `ls RET` * See the output of the `ls` but *not* the actual `ls` command * Enter an interpreter; two choices which reproduce the problem include `sqlite3` and `python3` Type `sqlite3` at the shell prompt * Type .exit at the sqlite3 prompt (notice that the `.exit` was echo'd before the shell prompt came back; the bug is now active * Type `ls RET` at the shell prompt. Notice that the `ls RET` was echoed before the ls output was printed. Note that using `python3` or even `python` at the prompt will also exhibit the bug. (To exit Python, just type ctrl-D). The only way I've found to "fix" the problem is to ctrl-D to exit the shell, then `M-x shell RET` to restart it in the same buffer. In GNU Emacs 25.3.1 (x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G29)) of 2017-09-14 built on resist.local Windowing system distributor 'Apple', version 10.3.1504 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/25.3/share/info/emacs --prefix=/usr/local/Cellar/emacs/25.3 --without-x --with-xml2 --without-dbus --without-gnutls --without-imagemagick --with-ns --disable-ns-self-contained' Configured features: JPEG NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-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 line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. The mark is not set now, so there is no region Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils shell pcomplete comint ansi-color ring time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev 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 kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 200070 5259) (symbols 48 19931 0) (miscs 40 59 194) (strings 32 16829 5243) (string-bytes 1 489691) (vectors 16 33562) (vector-slots 8 655967 4691) (floats 8 158 281) (intervals 56 252 16) (buffers 976 20)) From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 00:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: barry@python.org (Barry A. Warsaw) Cc: 28500@debbugs.gnu.org Received: via spool by 28500-submit@debbugs.gnu.org id=B28500.15057819346511 (code B ref 28500); Tue, 19 Sep 2017 00:46:02 +0000 Received: (at 28500) by debbugs.gnu.org; 19 Sep 2017 00:45:34 +0000 Received: from localhost ([127.0.0.1]:47019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1du6fO-0001gx-55 for submit@debbugs.gnu.org; Mon, 18 Sep 2017 20:45:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54493) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1du6fM-0001gj-PN for 28500@debbugs.gnu.org; Mon, 18 Sep 2017 20:45:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1du6fG-0000nM-Qx for 28500@debbugs.gnu.org; Mon, 18 Sep 2017 20:45:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1du6fE-0000lo-BM; Mon, 18 Sep 2017 20:45:24 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1du6fE-0002sF-0W; Mon, 18 Sep 2017 20:45:24 -0400 From: Glenn Morris References: X-Spook: Water borne Plame Cloud Disaster management bank X-Ran: zsQ;V\'ub+H)m:OvyX>x'jW?MjmZ\t]9;|=Od&Tdd0.bqOQ+r*ST1}?u\2v\47mOUk]~tp X-Hue: yellow X-Attribution: GM Date: Mon, 18 Sep 2017 20:45:23 -0400 In-Reply-To: (Barry A. Warsaw's message of "Mon, 18 Sep 2017 11:46:50 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Barry A. Warsaw wrote: > * M-x shell RET > * Go to the shell and type `ls RET` > * See the output of the `ls` but *not* the actual `ls` command > * Enter an interpreter; two choices which reproduce the problem include `sqlite3` and `python3` > Type `sqlite3` at the shell prompt > * Type .exit at the sqlite3 prompt (notice that the `.exit` was echo'd > before the shell prompt came back; the bug is now active > * Type `ls RET` at the shell prompt. Notice that the `ls RET` was > echoed before the ls output was printed. FWIW, I cannot reproduce this on RHEL7. From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command Resent-From: Nick Helm Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 00:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 28500@debbugs.gnu.org Cc: "Barry A. Warsaw" Received: via spool by 28500-submit@debbugs.gnu.org id=B28500.15057824797453 (code B ref 28500); Tue, 19 Sep 2017 00:55:01 +0000 Received: (at 28500) by debbugs.gnu.org; 19 Sep 2017 00:54:39 +0000 Received: from localhost ([127.0.0.1]:47038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1du6oB-0001w9-IP for submit@debbugs.gnu.org; Mon, 18 Sep 2017 20:54:39 -0400 Received: from mail-sy3aus01on0103.outbound.protection.outlook.com ([104.47.117.103]:16401 helo=AUS01-SY3-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1du6o8-0001vt-CN for 28500@debbugs.gnu.org; Mon, 18 Sep 2017 20:54:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5JvKhIYPXXsbIiygYRQ5mqZdABPoVDrWVWcnpJ/FjmM=; b=AdepR6AQB5ILOQY7RgfH3ccujI0Rhm6LWTnW6srmZVp9F/eDPkNzuRZlWL6X9+o6Za8b1Bwf9nq9AajUYXahcuavd7x9QLiQxwt4v7VBEkeBe/BXUhmor2KxICenmSNuyeghXBqlC3V2z3iMkH3enh/BYCaJxGN/7s8Ctz9EWEg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nick@tenpoint.co.nz; Received: from oberon (125.239.174.128) by MEXPR01MB1064.ausprd01.prod.outlook.com (10.169.163.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Tue, 19 Sep 2017 00:54:19 +0000 From: Nick Helm References: Date: Tue, 19 Sep 2017 12:54:15 +1200 In-Reply-To: (Barry A. Warsaw's message of "Mon, 18 Sep 2017 11:46:50 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [125.239.174.128] X-ClientProxiedBy: SYXPR01CA0083.ausprd01.prod.outlook.com (10.171.34.16) To MEXPR01MB1064.ausprd01.prod.outlook.com (10.169.163.11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ced8d608-239d-427b-6b41-08d4fef8f5c1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(2017082002075)(300000503095)(300135400095)(201703131423075)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MEXPR01MB1064; X-Microsoft-Exchange-Diagnostics: 1; MEXPR01MB1064; 3:iFclb4FMBGUwsMNEFERKjS6sl5g8Ta8JScpR6+4spoUC9MS1WEWhw+8yfRMOQrUNLyOo4y6lcaaYvaBuerIKfP0N3aj3R9W/NysSOxj47RrZVkf8TaVDoz92EKqrhbcb0C35rLDFcMcGfwOQ+hvdvtt603pIkX3EBWpJqMqfbd+7A0/kLyxcM7tnThwZ01mBiYIDrUQI1/aAD5uv/HQrxUpY1SXKRwDXtZA7xcBX69V9cSlFM4PNVfI+9J+K2xe8; 25:JU9nqZ/VQ3L2M9AvxdeM8toRGoSvtn5OQZCeGUIH+L/HJuy9eOtXrfa4wlg8TsPrgRwveFkkr2WbmPtso3qfgWS6IeAeVQaKBMRDrEJKOAdO6sZ+YZ1ZJIBguvYZPbwNegDYFqFfxIr2IwkJ7Ty1M0kQdtKw6/b0HO4zcQ3fXLpHXXYQBcLIhIxy2fl4FhgrFC5clHrfj+oeDiSI1K2pi49Wa+cbNjuw6m9d3ncV2UJdeT5eF8B6wlChACHWQvdKrBDY6LuvTH4ahK4dTUWbBNEPEKBxsZhKhLFsPwB4NOHlBTg5cygMLCxx0Qp2sYt5cOeZtefPSqKy7WyWMtB2lg==; 31:anZ+GDX1AvOXWV5wx4x4qepA0ZfdFi7ApZQCczgImANVJ0A1v+HDNIP+R9k4sG9NDdMdnKAlbCwUHOuqTYrV1jeC/43+1gLTK5ecx9Aw42KLMYbQgvxGO+wwmWw5JnLOHJjT+xDm4bW9L025kfbEcIi1RNMv4SOE+QNb7zWG/AgBrHkMElU2PxE0cZyLv2QExcnzTG1I+mGWB8JC1rzTAdsVVSl/lkE7I0BmzDkKnIw= X-MS-TrafficTypeDiagnostic: MEXPR01MB1064: X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6041248)(20161123562025)(2016111802025)(20161123560025)(201703131423075)(201703061421075)(20161123558100)(20161123555025)(20161123564025)(6043046)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MEXPR01MB1064; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MEXPR01MB1064; X-Microsoft-Exchange-Diagnostics: 1; MEXPR01MB1064; 4:mZrUhFC4gfxDEnabdjZoXNzJ2OP6VTjDzwg39BvRkBYXmnvzhDsoI9ME+M6sWn45NvUdNY08Gk/3h0FIiMgk1TBTn1lwyUM5WVJExMdHbL2/A2gZ8wb8wNEEnUylfjJECkAAsTfJLlXR7w2vy9ZOKQVvcWTMlWR3TeD6hM80VytOw/spGbrBvVUbscOM0a2Po10LrDnie29P1tU+IwbTgMevozUjPDJLtd300irraLCCJ4InquYUaVXV2HAUWAI0 X-Forefront-PRVS: 04359FAD81 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(7370300001)(6009001)(376002)(346002)(189002)(199003)(6496005)(54356999)(74482002)(81166006)(2351001)(305945005)(53936002)(2361001)(189998001)(508600001)(7736002)(83506001)(105586002)(106356001)(101416001)(81156014)(47776003)(8676002)(36756003)(6246003)(33646002)(3846002)(66066001)(6116002)(97736004)(5003940100001)(58126008)(2950100002)(48376002)(50466002)(16526017)(25786009)(16586007)(68736007)(86362001)(7350300001)(42882006)(5660300001)(6916009)(6486002)(2906002)(50986999)(76176999)(6666003)(229853002); DIR:OUT; SFP:1102; SCL:1; SRVR:MEXPR01MB1064; H:oberon; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1; MEXPR01MB1064; 23:mxCTymlIuyvaVVNO3CzaS9ceNNVc4NBSuXA/uEZU6HFJd3nCNZCQj3vg2FJfT2P08njsorch7bPw8LA4bKaq0qqQunS9Qlif/jsMcCLpFGCX3HhCpqIOsbsoUCtOwOmVs9P+cwTxuXS+NjjyZFKTlSBec0yVorf1KOx4v3jaWSSbrZpTcw+aFpky3frC3i9F+V033o7MNdOgZXLNUiQ3qI+v7c3JvyuOTWR/6aaSNeLDtq7c/i91dIaYkO/Gq1GwR6w0wWfpDxQDU0ZZthdYOm98yQp9nJ2syRiC99dLfqq3N1SY1YWSQ+U3hDLY7jX74sQGBqgH27E1/fqOhNnpwoYWTAOf5XAmvR4oXz0c2DN6gMrSj+vcdHawVMFjr0wtqFpAhEWn4CpqWVPGwTTXN9/6gF+7z6FP13LL5b+kLOYSUSE3YnSp5LKRv+qmxotO8bKCeVUSHt4rK3lO9mizKHb8v+bnVm9/ImdhKNnAKqdwTO/71MImoMJ4GZ+bllOwyiF2ZRr2liaimLPIofriBQ2JBshWrS3zgb01snJydpYI2AnZgnfiRP4LXId2/Wr1wljkJrtNPjINDDG4+2brmql7/KUXCL5K/wr4mDxPTGPWflTjfu9yvgKnUgT/ysMDGjh1tavXIM/MTg8ozMZ93VRIzrRg1xihE9Nhm1fgyDcdVug+tNjiI30MNX7XT3sRjv0pqBzbu8a/Nz2Kfk0HezVR5pBi9Ub6k/fGRggGKjeSaLldRxKmnlJn/qWO2ATVlpnf11e9mCtFRXDntzmPwNwToj6F4oscCwC30hG12YBywX9VGfqvo6pvaY37WjJ9vqCxAzp4GateZZRZq7BAyTNcAsKUCKBdkR3YwtcWfqxfdUoUDp8tlRk/dIfeeoqTws0zA8SabXcsDemueNIjWZh7Q08dccllVuo0wl1s1dIynAHeUt1hoAeWy6x9EPEq0q/rdIWN0sr3bJhiwloyiqPutAgaxTlmTljbHqs3XQ5L0N5pYfU8Ww2VbNAyO6ipjW4iEpWuE5QmuN9gQ/VKa2Uxcj3IBYixh/6O46zfRSq6Z4zb2TYirodXNC4+TV/5/dHE9yAecdIX8CvEbd4eigYnCjUWJfD7uGcvscn3yvLm4AsPDr9ehXf081WlT54DVYhvaIgMi6M27C6EIR36PjS//opnT3D1p+C5dSxNk3ddcSQK/99ZrYXESyBPSZCcAAyiUW4enqZri5iB5TK/xw== X-Microsoft-Exchange-Diagnostics: 1; MEXPR01MB1064; 6:vUDgNjE8O5lUxjWqfSm1k40hotvbCkvkKPkRuj4lSAvnd3+jkquORbGvuW6NWWayTNwq3vYgTsyVX2qVnSsknNVy/SrsnHKsBMEYVpesmy1nppfWWi1ubskA8wtgdXRst4xmKruekZ3Bhpo4wtv3KaRVG3OfdUoQ99vWUitq5lf21nx45xv8DMIHE1qzcnSdLOhWWatwtB1zJ7RYxHUVGABH4klSPW6s5BE9pOhv7Z5Snj0HbIb3qr5RJsun2oNxEKFfrP94k20+U61JsSnskMiOHnK26M+mOnjo40aNykwQTpR5AVQybOVbEv4skNPD7yAFh11h/zAGjYr3P9myqA==; 5:NJMtJDX9faOsYsvPwn74e8LUsrXWZ4QI+bSUTWZXfjFvD5Lkgm7UUFMko+Zrw0u/9HOpCc2l5Zn3mUqimBwCnYLbU0yyOQtDRrlNhk+DvDZlNloyCAWCEG82kcZjkgIcbQrJKp/nax6Cx2cqN+DtVA==; 24:pxUXhkfwQDIN6huWLNTWZOmn82suZ+zQpqGcldTmQZjaBItRIx03cHrCZQ9fFdMlNdnFuX8ejs5RvWat15oJ3PYJ9Du0wyX0NoMCGOzNS/0=; 7:cS05MzNqGmtN83XUUDAYmLgIgqXRCSX2E94C7HLJbOPRr7/M1C2hdj34d9lR1fZldfoIBJXDCsH5NeRoX7x5wiJ1RyllcfoKfANQCvyK3tA7iVSzdMVdyI2oZ1XnT+2GTA+kuxqg9qVOFiCmqR2hPoCdeMuvZqmJep44FhGrI7hu6Chip+o9ElAtsFL77RosFkxYGzBXf5tidSFSWkTk09daWRnyzwzv0oxT6wZf1/g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: tenpoint.co.nz X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2017 00:54:19.1395 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MEXPR01MB1064 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) barry@python.org (Barry A. Warsaw) writes: > * M-x shell RET > * Go to the shell and type `ls RET` > * See the output of the `ls` but *not* the actual `ls` command > * Enter an interpreter; two choices which reproduce the problem include `sqlite3` and `python3` > Type `sqlite3` at the shell prompt > * Type .exit at the sqlite3 prompt (notice that the `.exit` was echo'd > before the shell prompt came back; the bug is now active > * Type `ls RET` at the shell prompt. Notice that the `ls RET` was > echoed before the ls output was printed. I can reproduce this with Emacs 25.3 on macOS 10.12.6. From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command References: Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 01:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: barry@python.org (Barry A. Warsaw) Cc: 28500@debbugs.gnu.org Received: via spool by 28500-submit@debbugs.gnu.org id=B28500.150578315815744 (code B ref 28500); Tue, 19 Sep 2017 01:06:01 +0000 Received: (at 28500) by debbugs.gnu.org; 19 Sep 2017 01:05:58 +0000 Received: from localhost ([127.0.0.1]:47048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1du6z7-00045s-Sq for submit@debbugs.gnu.org; Mon, 18 Sep 2017 21:05:58 -0400 Received: from shell1.rawbw.com ([198.144.192.42]:29595 ident=root) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1du6z6-00045k-AL for 28500@debbugs.gnu.org; Mon, 18 Sep 2017 21:05:56 -0400 Received: from alto (m208-249.dsl.rawbw.com [198.144.208.249]) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTP id v8J15rZt070106; Mon, 18 Sep 2017 18:05:53 -0700 (PDT) (envelope-from mkupfer@alum.berkeley.edu) X-Authentication-Warning: shell1.rawbw.com: Host m208-249.dsl.rawbw.com [198.144.208.249] claimed to be alto From: Mike Kupfer In-Reply-To: Your message of "Mon, 18 Sep 2017 11:46:50 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7-RC3; GNU Emacs 26.0.60 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20958.1505783153.1@alto> Date: Mon, 18 Sep 2017 18:05:53 -0700 Message-ID: <20959.1505783153@alto> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) I see the same issue after using openssl to encrypt or decrypt a file. Just never got around to filing a bug report... -----8<-----8<----- alto$ openssl aes-256-cbc -in foo.txt -out foo.text.enc enter aes-256-cbc encryption password: Verifying - enter aes-256-cbc encryption password: alto$ ls ls deb9-upgrade.log foo.text.enc ieee-cs-election-receipt.pdf enchant.dummy* foo.txt net-neutrality-comments.pdf alto$ echo $SHELL echo $SHELL /bin/bash alto$ ----->8----->8----- I see this on Debian 8 and on Solaris, with various versions of Emacs. mike From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command Resent-From: Barry Warsaw Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 02:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mike Kupfer Cc: 28500@debbugs.gnu.org Received: via spool by 28500-submit@debbugs.gnu.org id=B28500.150578936325013 (code B ref 28500); Tue, 19 Sep 2017 02:50:01 +0000 Received: (at 28500) by debbugs.gnu.org; 19 Sep 2017 02:49:23 +0000 Received: from localhost ([127.0.0.1]:47100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1du8bC-0006VN-VV for submit@debbugs.gnu.org; Mon, 18 Sep 2017 22:49:23 -0400 Received: from mail.wooz.org ([216.15.33.194]:56836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1du8bA-0006V8-HQ for 28500@debbugs.gnu.org; Mon, 18 Sep 2017 22:49:21 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.wooz.org (Postfix) with ESMTP id 119801401EA; Mon, 18 Sep 2017 22:49:15 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mail.wooz.org X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-9999 required=6 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mail.wooz.org ([127.0.0.1]) by localhost (mail.wooz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oYlI73lHRRog; Mon, 18 Sep 2017 22:49:14 -0400 (EDT) Received: from resist.wooz.org (resist.wooz.org [192.168.11.57]) by mail.wooz.org (Postfix) with ESMTPSA id 8730A1401E7; Mon, 18 Sep 2017 22:49:14 -0400 (EDT) Content-Type: multipart/signed; boundary="Apple-Mail=_5C1425AB-AE89-4201-AAF1-8E7C757FD35D"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) From: Barry Warsaw In-Reply-To: <20959.1505783153@alto> Date: Mon, 18 Sep 2017 22:49:14 -0400 X-Mao-Original-Outgoing-Id: 527482154.049121-dd7c4fc3ade56ea085f6dc5b23a372ca Message-Id: References: <20959.1505783153@alto> X-Mailer: Apple Mail (2.3273) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_5C1425AB-AE89-4201-AAF1-8E7C757FD35D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Sep 18, 2017, at 21:05, Mike Kupfer = wrote: >=20 > I see the same issue after using openssl to encrypt or decrypt a file. > Just never got around to filing a bug report=E2=80=A6 Interesting. I=E2=80=99ve only noticed it in 25.2 and 25.3 on macOS = (installed from brew). I can=E2=80=99t reproduce it in 25.2 on Ubuntu = 17.10. > alto$ openssl aes-256-cbc -in foo.txt -out foo.text.enc > enter aes-256-cbc encryption password: > Verifying - enter aes-256-cbc encryption password: > alto$ ls > ls > deb9-upgrade.log foo.text.enc ieee-cs-election-receipt.pdf > enchant.dummy* foo.txt net-neutrality-comments.pdf > alto$ echo $SHELL > echo $SHELL > /bin/bash > alto$ This is reproducible for me too on macOS. I can also reproduce it by running the Mailman 3 shell from git = checkout. That made me think it could be readline related, but I built = a Mailman 3 without readline support and it made no difference. I = haven=E2=80=99t figured out what the common denominator is, but I = edebug=E2=80=99d it down to comint-send-string and then = process-send-string. There the trail ended with C code and I haven=E2=80=99= t gdb=E2=80=99d into that. It seems like some state in = process-send-string gets confused and starts echoing the input. -Barry --Apple-Mail=_5C1425AB-AE89-4201-AAF1-8E7C757FD35D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEhBcVftvnPZ6sHlObEm61Y6dLBr8FAlnAhaoACgkQEm61Y6dL Br+3hw//VdD1gueMpPmTDUxiX/6PBkjH8zmuuWAiSRbAFh23FZmH9ddAiQ8h2vdX Tz6yFWtTmHT9fgum1vEyRvSd2cdPjl/YtQw1J9/dEd0JDVxlIUgu7PobvF+ZCFhA FhQ5qdBIlSTl/PjgG0uqLXkREloW+4AA/csGX3gqbCe+++OoWfPWvmXFGFZaanqE TKOhvNPMxA/CXmzIn/iqTxkm1TsM/iIWsNKtaiS8lBWtUkgjk2J2Sn5qd7F0o2jy PSBPHjakhbt37KNvqeYJXVl422SRDtkbWYneVPqMrBos/Z6GuEvkFXqsq54Hu3qw Zc0nn7IVfFZ/f+wfSf6iiUudRr5B1kVnd9dC9tOjYq2xQsBHP3yPYVYWJjl9YkuK IRdOwyTAjRhrxproAqAqwAna3b1fX/mgSN399JO1BZuKvWTYPE1UpTuF+RGUS/pw Q84EhtArkpX+/7MUIOzfaeinzvyoSByDs/Gu1MSywHwNAgzcy55vVGqh7jpiohn5 VOh+Czi01UNfldQZWoZ3XyiNcum9I9htz5Fls/3MjQxJgDl5woFFBkcKsbcZJMX1 tOQp+fDYRaTE73izcQH0M6VmLXOACid7T0vN5dB7vw0UO7eAXX4dsEm0GeaPj3vm crAGghXsXA63KEX59sCtl8AWjP6hJk3jErc5OSwG80kb5Hr+FmI= =E5PE -----END PGP SIGNATURE----- --Apple-Mail=_5C1425AB-AE89-4201-AAF1-8E7C757FD35D-- From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 07:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mike Kupfer Cc: 28500@debbugs.gnu.org, "Barry A. Warsaw" Received: via spool by 28500-submit@debbugs.gnu.org id=B28500.150580647119339 (code B ref 28500); Tue, 19 Sep 2017 07:35:02 +0000 Received: (at 28500) by debbugs.gnu.org; 19 Sep 2017 07:34:31 +0000 Received: from localhost ([127.0.0.1]:47189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duD38-00051r-NG for submit@debbugs.gnu.org; Tue, 19 Sep 2017 03:34:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:59317 helo=mx1.suse.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duD37-00051j-1T for 28500@debbugs.gnu.org; Tue, 19 Sep 2017 03:34:29 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E1AE4ABB3; Tue, 19 Sep 2017 07:34:27 +0000 (UTC) From: Andreas Schwab References: <20959.1505783153@alto> X-Yow: Was my SOY LOAF left out in th'RAIN? It tastes REAL GOOD!! Date: Tue, 19 Sep 2017 09:34:27 +0200 In-Reply-To: <20959.1505783153@alto> (Mike Kupfer's message of "Mon, 18 Sep 2017 18:05:53 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On Sep 18 2017, Mike Kupfer wrote: > I see the same issue after using openssl to encrypt or decrypt a file. > Just never got around to filing a bug report... > > -----8<-----8<----- > alto$ openssl aes-256-cbc -in foo.txt -out foo.text.enc > enter aes-256-cbc encryption password: > Verifying - enter aes-256-cbc encryption password: > alto$ ls > ls > deb9-upgrade.log foo.text.enc ieee-cs-election-receipt.pdf > enchant.dummy* foo.txt net-neutrality-comments.pdf > alto$ echo $SHELL > echo $SHELL > /bin/bash > alto$ > ----->8----->8----- > > I see this on Debian 8 and on Solaris, with various versions of Emacs. This is a bug in openssl, it doesn't properly restore the tty settings after reading the password. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command Resent-From: Barry Warsaw Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 13:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: 28500@debbugs.gnu.org, Mike Kupfer Received: via spool by 28500-submit@debbugs.gnu.org id=B28500.15058272146563 (code B ref 28500); Tue, 19 Sep 2017 13:21:02 +0000 Received: (at 28500) by debbugs.gnu.org; 19 Sep 2017 13:20:14 +0000 Received: from localhost ([127.0.0.1]:47443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duIRh-0001hn-Sg for submit@debbugs.gnu.org; Tue, 19 Sep 2017 09:20:14 -0400 Received: from mail.wooz.org ([216.15.33.194]:45444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duIRg-0001hY-HU for 28500@debbugs.gnu.org; Tue, 19 Sep 2017 09:20:13 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.wooz.org (Postfix) with ESMTP id F4197140519; Tue, 19 Sep 2017 09:20:06 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mail.wooz.org X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-9999 required=6 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mail.wooz.org ([127.0.0.1]) by localhost (mail.wooz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h9q11pNSgHMk; Tue, 19 Sep 2017 09:20:06 -0400 (EDT) Received: from resist.wooz.org (resist.wooz.org [192.168.11.57]) by mail.wooz.org (Postfix) with ESMTPSA id 8A6EA1401E7; Tue, 19 Sep 2017 09:20:06 -0400 (EDT) Content-Type: multipart/signed; boundary="Apple-Mail=_5DCC5773-A8D5-48C6-8026-C1EA73297813"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) From: Barry Warsaw In-Reply-To: Date: Tue, 19 Sep 2017 09:20:06 -0400 X-Mao-Original-Outgoing-Id: 527520005.761863-a035e58389e9f1fc97d75051cd25a934 Message-Id: <27B67310-AFA1-42A3-B0F4-70D567A837CE@python.org> References: <20959.1505783153@alto> X-Mailer: Apple Mail (2.3273) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_5DCC5773-A8D5-48C6-8026-C1EA73297813 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Sep 19, 2017, at 03:34, Andreas Schwab wrote: >=20 > On Sep 18 2017, Mike Kupfer wrote: >=20 >> I see the same issue after using openssl to encrypt or decrypt a = file. >> Just never got around to filing a bug report... >>=20 >> -----8<-----8<----- >> alto$ openssl aes-256-cbc -in foo.txt -out foo.text.enc >> enter aes-256-cbc encryption password: >> Verifying - enter aes-256-cbc encryption password: >> alto$ ls >> ls >> deb9-upgrade.log foo.text.enc ieee-cs-election-receipt.pdf >> enchant.dummy* foo.txt net-neutrality-comments.pdf >> alto$ echo $SHELL >> echo $SHELL >> /bin/bash >> alto$ >> ----->8----->8----- >>=20 >> I see this on Debian 8 and on Solaris, with various versions of = Emacs. >=20 > This is a bug in openssl, it doesn't properly restore the tty settings > after reading the password. Andreas, can you provide any additional details? What exactly is not = getting restored? Are the other two examples I posted (python3 and = sqlite3) related? Why would it occur on (for me) macOS but not Ubuntu? --Apple-Mail=_5DCC5773-A8D5-48C6-8026-C1EA73297813 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEhBcVftvnPZ6sHlObEm61Y6dLBr8FAlnBGYUACgkQEm61Y6dL Br/+EA//VS045hbY4geFQFx45Mzb+GQjxcr605TuJoyKNEZjbz/S0eoqmApQP6TY 1EekpC8/znqmnVHAuXG6tRGAJ1pFad9wfYVbbvb8f7ydBC+guKb+lqw53tYToWy1 El8q3uQGT7F+j2+e4zVwdZqR1ZPVtemqk3kIUu9BoJ5C4bTkOmBxOFV0oJy1OWiV RTh5wZJRle55USuZRhWCfN6luwDX/8hAIB1AsGx1QVSa/PRtw8mwQFat2e34uQ+Z xqvGnCfVEvhVvHFx9sxj1n5sZ7prHmAAsqeAzZ3U467IM5T7Dx0TfPoD+jXCnIaZ KygIrX/Po36k1IbYYOK119SYGP+iTclO1vNhdNtLCbHlTWs1gJNQal35MYxnfAxT B3ph6oaHmiQzbOW08FslNgeW0IS9a6E3h3w7SlBWx2zso44CZp9D3DTTKQnx9jRn wMFUWhJpGGD/M44au1slr0rjIi4kVStVjKLu023lrFkzf/i86a1IXeWVQ3mS9Vdy z/OFI/mv8M+FI+c30OuVzccRcHq7W5GUZAdhjRj/iAhGAZX1u+aPFwKR/NBiVbKL tpq/UziReF85Y4GgAWHmnm8/hB8vUXDDsZcvUu1eprJXrW5OOrCyHxfAFAdn5Twn S63oV2STZ++uANRIkv8nwooYsvlQjYAlbGnmMvCibRu+A1/XKWM= =7JK7 -----END PGP SIGNATURE----- --Apple-Mail=_5DCC5773-A8D5-48C6-8026-C1EA73297813-- From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 13:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Barry Warsaw Cc: 28500@debbugs.gnu.org, Mike Kupfer Received: via spool by 28500-submit@debbugs.gnu.org id=B28500.15058281738059 (code B ref 28500); Tue, 19 Sep 2017 13:37:02 +0000 Received: (at 28500) by debbugs.gnu.org; 19 Sep 2017 13:36:13 +0000 Received: from localhost ([127.0.0.1]:47452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duIhB-00025v-8p for submit@debbugs.gnu.org; Tue, 19 Sep 2017 09:36:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:43887 helo=mx1.suse.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duIh9-00025m-1c for 28500@debbugs.gnu.org; Tue, 19 Sep 2017 09:36:11 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E6DFA5CBCC; Tue, 19 Sep 2017 13:36:09 +0000 (UTC) From: Andreas Schwab References: <20959.1505783153@alto> <27B67310-AFA1-42A3-B0F4-70D567A837CE@python.org> X-Yow: HAIR TONICS, please!! Date: Tue, 19 Sep 2017 15:36:09 +0200 In-Reply-To: <27B67310-AFA1-42A3-B0F4-70D567A837CE@python.org> (Barry Warsaw's message of "Tue, 19 Sep 2017 09:20:06 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On Sep 19 2017, Barry Warsaw wrote: > On Sep 19, 2017, at 03:34, Andreas Schwab wrote: >> >> On Sep 18 2017, Mike Kupfer wrote: >> >>> I see the same issue after using openssl to encrypt or decrypt a file. >>> Just never got around to filing a bug report... >>> >>> -----8<-----8<----- >>> alto$ openssl aes-256-cbc -in foo.txt -out foo.text.enc >>> enter aes-256-cbc encryption password: >>> Verifying - enter aes-256-cbc encryption password: >>> alto$ ls >>> ls >>> deb9-upgrade.log foo.text.enc ieee-cs-election-receipt.pdf >>> enchant.dummy* foo.txt net-neutrality-comments.pdf >>> alto$ echo $SHELL >>> echo $SHELL >>> /bin/bash >>> alto$ >>> ----->8----->8----- >>> >>> I see this on Debian 8 and on Solaris, with various versions of Emacs. >> >> This is a bug in openssl, it doesn't properly restore the tty settings >> after reading the password. > > Andreas, can you provide any additional details? What exactly is not getting restored? Are the other two examples I posted (python3 and sqlite3) related? Why would it occur on (for me) macOS but not Ubuntu? $ stty; openssl aes-256-cbc -in foo.txt -out foo.text.enc; stty Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command Resent-From: Barry Warsaw Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 14:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: 28500@debbugs.gnu.org, Mike Kupfer Received: via spool by 28500-submit@debbugs.gnu.org id=B28500.150583257515926 (code B ref 28500); Tue, 19 Sep 2017 14:50:01 +0000 Received: (at 28500) by debbugs.gnu.org; 19 Sep 2017 14:49:35 +0000 Received: from localhost ([127.0.0.1]:48371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duJqA-00048o-Uo for submit@debbugs.gnu.org; Tue, 19 Sep 2017 10:49:35 -0400 Received: from mail.wooz.org ([216.15.33.194]:47486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duJq9-00048Y-1U for 28500@debbugs.gnu.org; Tue, 19 Sep 2017 10:49:34 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.wooz.org (Postfix) with ESMTP id 8B8F7140988; Tue, 19 Sep 2017 10:49:27 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mail.wooz.org X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-9999 required=6 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mail.wooz.org ([127.0.0.1]) by localhost (mail.wooz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tswg8TvhXvIE; Tue, 19 Sep 2017 10:49:27 -0400 (EDT) Received: from resist.wooz.org (resist.wooz.org [192.168.11.57]) by mail.wooz.org (Postfix) with ESMTPSA id 28E1B1401E7; Tue, 19 Sep 2017 10:49:26 -0400 (EDT) Content-Type: multipart/signed; boundary="Apple-Mail=_2D516B15-28A3-4534-B1A4-12C156C606FB"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) From: Barry Warsaw In-Reply-To: Date: Tue, 19 Sep 2017 10:49:26 -0400 X-Mao-Original-Outgoing-Id: 527525365.68788-7d47a2c608f4111b54fb02ada045db0c Message-Id: <1D0EE981-20A3-42D8-88CB-9F6BFBAA871C@python.org> References: <20959.1505783153@alto> <27B67310-AFA1-42A3-B0F4-70D567A837CE@python.org> X-Mailer: Apple Mail (2.3273) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_2D516B15-28A3-4534-B1A4-12C156C606FB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Sep 19, 2017, at 09:36, Andreas Schwab wrote: > $ stty; openssl aes-256-cbc -in foo.txt -out foo.text.enc; stty Thanks, that=E2=80=99s exactly the clue I needed. % stty speed 9600 baud; lflags: -echo echoe echoke echoctl oflags: -oxtabs cflags: cs8 -parenb % sqlite3 SQLite version 3.16.0 2016-11-04 19:09:39 Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite> .exit .exit % stty stty speed 9600 baud; lflags: echoe echoke echoctl oflags: -oxtabs cflags: cs8 -parenb % stty -echo stty -echo |resist=3D|@resist[~:1020]% ls Applications/ Library/ Sites/ Notice that -echo gets lost when exiting sqlite3. Setting -echo = explicitly fixes the problem. So not a bug per se in Emacs, although I = wonder if a coming-output-filter-function could be added to do the fix = until the offending processes themselves are fixed? --Apple-Mail=_2D516B15-28A3-4534-B1A4-12C156C606FB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEhBcVftvnPZ6sHlObEm61Y6dLBr8FAlnBLnUACgkQEm61Y6dL Br8xWA//amI0+gPYAQM+GpAapx8l+1DU7g6KQ+ffSKqRp4PFbmTBlB/+LVvIfJeA UxoJmlFwCjxy5qStcSPIzAzdR8bz29G3GWR2tQb2OmKallggaPSnzXzz7+3OIPfl wX6xTzoBrU7KDf5vwGO/zy6LSZRTMAvzt/8RGs9ltJYhh19V9CT7loYr5RWmRBP1 rVNToDF5YpGWdOem7gLFOChN1XB2RiBJDGaDbjTy2Ti7ls7njNpJ+BB+SYXtWLlH n1mVSa9Wx558nZkTB/WT+PmU+mjnvSdUctkzBVrOD3OEMDPPslQ2ifi0NpmBUDOc zxTHDyWjHkqLgqxArBb2OJH5RhkUCz1S3G3FOn7FSqA9DvxloiL9iXsp3wmrm/AL 9UoV8WJ2HLCYxbyLljrkpqhjpYJ+i6SGp/PkYtSE6mNmUf3l9tVD3nE2abe7tuaY mvkN0SYHmf13TYthB6M/tPEKqAHCIPz0VqHN1EphKubvyXAncyBL9QlmTfEOwMCP 83els8vDvWXv40xLl2+OmIHmrP3XEk8XaQh8JuOCA31yG5H2gB23qOowBH6hSZ8w SfeQCZHgn8SB/nMB/n8EaJojIGRFN1LUBYzgtpicuGNugTL9BXR/xi3TL56RfWcJ mLZ+AxgA7VuVR63t5M1dGwKrGzknCoqB1QyFKfw7PiumblMJUZc= =QYy6 -----END PGP SIGNATURE----- --Apple-Mail=_2D516B15-28A3-4534-B1A4-12C156C606FB-- From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command Resent-From: Barry Warsaw Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Sep 2017 00:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: 28500@debbugs.gnu.org, Mike Kupfer Received: via spool by 28500-submit@debbugs.gnu.org id=B28500.150586678916519 (code B ref 28500); Wed, 20 Sep 2017 00:20:02 +0000 Received: (at 28500) by debbugs.gnu.org; 20 Sep 2017 00:19:49 +0000 Received: from localhost ([127.0.0.1]:48837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duSk1-0004IM-3X for submit@debbugs.gnu.org; Tue, 19 Sep 2017 20:19:49 -0400 Received: from mail.wooz.org ([216.15.33.194]:59918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duSjz-0004I7-86 for 28500@debbugs.gnu.org; Tue, 19 Sep 2017 20:19:48 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.wooz.org (Postfix) with ESMTP id C8CCD140742; Tue, 19 Sep 2017 20:19:41 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mail.wooz.org X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-9999 required=6 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mail.wooz.org ([127.0.0.1]) by localhost (mail.wooz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3quujMkmjcKM; Tue, 19 Sep 2017 20:19:41 -0400 (EDT) Received: from resist.wooz.org (resist.wooz.org [192.168.11.57]) by mail.wooz.org (Postfix) with ESMTPSA id 590711401EB; Tue, 19 Sep 2017 20:19:41 -0400 (EDT) Content-Type: multipart/signed; boundary="Apple-Mail=_BE2936E1-88CB-41F8-8F42-06AEB0C4403C"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) From: Barry Warsaw In-Reply-To: Date: Tue, 19 Sep 2017 20:19:40 -0400 X-Mao-Original-Outgoing-Id: 527559580.54946-a7bd86c6ecbf30d9ed30b3acea3bb366 Message-Id: <5C993508-76A7-4A5D-A2B9-6146213B7935@python.org> References: <20959.1505783153@alto> <27B67310-AFA1-42A3-B0F4-70D567A837CE@python.org> X-Mailer: Apple Mail (2.3273) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_BE2936E1-88CB-41F8-8F42-06AEB0C4403C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Sep 19, 2017, at 09:36, Andreas Schwab wrote: >=20 > $ stty; openssl aes-256-cbc -in foo.txt -out foo.text.enc; stty What is happening is that -echo is getting lost. `stty -echo` after = exiting Python will restore normal behavior in a shell buffer. I=E2=80=99= m not entirely sure why, but this is neither set nor necessary in a = Terminal window. My suspicion now falls on readline from home-brew. Specifically, if I = build Python from git master but *remove* the readline..so file so = there=E2=80=99s no way that readline can be invoked, then I don=E2=80=99t = see the problem. readline gets imported implicitly if available when = entering the interactive prompt, and I=E2=80=99ve proven to myself that = if that happens, echo gets reenabled. It=E2=80=99s the common feature = with sqlite3 too, which for me comes from brew. Further, because = openssl comes from Apple, it isn=E2=80=99t linked with brew=E2=80=99s = readline and that does *not* exhibit the problem. And then I found this: https://github.com/Homebrew/brew/issues/651 I will follow up on that issue, but it=E2=80=99s clearly now not an = Emacs bug. FWIW, this little bit of Python in your $PYTHONSTARTUP file will = workaround the problem: import sys import atexit import termios # Reset `stty -echo` on exit. def no_echo(): flags =3D termios.tcgetattr(sys.stdin) flags[3] &=3D ~termios.ECHO termios.tcsetattr(sys.stdin, termios.TCSADRAIN, flags) atexit.register(no_echo) Cheers! --Apple-Mail=_BE2936E1-88CB-41F8-8F42-06AEB0C4403C Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEhBcVftvnPZ6sHlObEm61Y6dLBr8FAlnBtBwACgkQEm61Y6dL Br/5Uw/8D/+8JCbxk3wtOG1J4rpeBfqI0tMQc5XNTkUp7H6TczsDpEGE9tannwMJ 0b0rdHu/dKdMXKqSQTLb4L+gCwttR2bHaaBdSkZeoHPt3jVRHtfhtkIAFPwPXVJw AXOhTbSF8kaC5y7/hbbs229wvRRqIbKIWAxCWmlrjQ7ABmTpTKH+fp/dyPkcGEZV XAVgi0xBmg97JUjdjQI9wIPUUu7tqosdMO1GIXzjQPcdY3MQLM4TKmq7pGwEMp2Y hl1dmsqFIteQFt6jahyiM4OYNVZ6Xkphdr+8t7x/sK1dSRlff7HW/szuacn1zA8h J3aLwrxjOQWIwNybhpJWT9FkE40V5GdNskn2F2STOx9/KSyPKP9VQKD9I66N7fHw pkYDfmw6Fk9QiwrYCAw0rmEfQbrVRuavcbq2+fxi91Nw8saqgiVyJ00cZzy22ur7 3hK8T7MklLF65of8VtRYtzRLwva1ikN0+GwNsD0bNpqMQ6B4svL4Q2bNHktu+HX/ X44Iy8gg/6IZTK5nPotTJHPmsk0etprBqlf9fSEeMsSp0nbbBdiA0vRIX95zmHOo 4YHm84GjQh15NB5hKC7AOHJUZUxGmJDgqt0zNftEdz2ywGBwqu+UFbyQVisdiZW2 qhAnXxlnLFyBVTj/Vx8crWrNLBoY075UJkJAOE5FUgpJugrwG3c= =7ZWn -----END PGP SIGNATURE----- --Apple-Mail=_BE2936E1-88CB-41F8-8F42-06AEB0C4403C-- From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Sep 2017 06:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Barry Warsaw Cc: 28500@debbugs.gnu.org, schwab@suse.de, mkupfer@alum.berkeley.edu Reply-To: Eli Zaretskii Received: via spool by 28500-submit@debbugs.gnu.org id=B28500.150588794616554 (code B ref 28500); Wed, 20 Sep 2017 06:13:01 +0000 Received: (at 28500) by debbugs.gnu.org; 20 Sep 2017 06:12:26 +0000 Received: from localhost ([127.0.0.1]:48975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duYFF-0004Iw-Uu for submit@debbugs.gnu.org; Wed, 20 Sep 2017 02:12:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duYFE-0004Ik-Cq for 28500@debbugs.gnu.org; Wed, 20 Sep 2017 02:12:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duYF8-0006Br-0p for 28500@debbugs.gnu.org; Wed, 20 Sep 2017 02:12:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duYF1-0005LA-I8; Wed, 20 Sep 2017 02:12:11 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2960 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1duYF1-0003ku-0y; Wed, 20 Sep 2017 02:12:11 -0400 Date: Wed, 20 Sep 2017 09:12:01 +0300 Message-Id: <83377hhpam.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <5C993508-76A7-4A5D-A2B9-6146213B7935@python.org> (message from Barry Warsaw on Tue, 19 Sep 2017 20:19:40 -0400) References: <20959.1505783153@alto> <27B67310-AFA1-42A3-B0F4-70D567A837CE@python.org> <5C993508-76A7-4A5D-A2B9-6146213B7935@python.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Barry Warsaw > Date: Tue, 19 Sep 2017 20:19:40 -0400 > Cc: 28500@debbugs.gnu.org, Mike Kupfer > > I will follow up on that issue, but it’s clearly now not an Emacs bug. Thanks for investigating. Does that mean we can close this bug report? From unknown Sun Aug 10 11:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28500: 25.3; shell mode starts echoing command Resent-From: Barry Warsaw Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Sep 2017 13:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 28500@debbugs.gnu.org, Andreas Schwab , mkupfer@alum.berkeley.edu Received: via spool by 28500-submit@debbugs.gnu.org id=B28500.15059147646105 (code B ref 28500); Wed, 20 Sep 2017 13:40:02 +0000 Received: (at 28500) by debbugs.gnu.org; 20 Sep 2017 13:39:24 +0000 Received: from localhost ([127.0.0.1]:49194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dufDn-0001aP-Tl for submit@debbugs.gnu.org; Wed, 20 Sep 2017 09:39:24 -0400 Received: from mail.wooz.org ([216.15.33.194]:46556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dufDl-0001a9-Ej for 28500@debbugs.gnu.org; Wed, 20 Sep 2017 09:39:22 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.wooz.org (Postfix) with ESMTP id B3A731408B0; Wed, 20 Sep 2017 09:39:15 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mail.wooz.org X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-9999 required=6 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mail.wooz.org ([127.0.0.1]) by localhost (mail.wooz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U50YpegMir5m; Wed, 20 Sep 2017 09:39:15 -0400 (EDT) Received: from resist.wooz.org (resist.wooz.org [192.168.11.57]) by mail.wooz.org (Postfix) with ESMTPSA id 1E9EA1401E7; Wed, 20 Sep 2017 09:39:15 -0400 (EDT) Content-Type: multipart/signed; boundary="Apple-Mail=_8231DA2D-C981-471B-8B87-55AD5D66B1C8"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) From: Barry Warsaw In-Reply-To: <83377hhpam.fsf@gnu.org> Date: Wed, 20 Sep 2017 09:39:14 -0400 X-Mao-Original-Outgoing-Id: 527607554.375036-42e6fd36230e955b1eb2829dc5371605 Message-Id: References: <20959.1505783153@alto> <27B67310-AFA1-42A3-B0F4-70D567A837CE@python.org> <5C993508-76A7-4A5D-A2B9-6146213B7935@python.org> <83377hhpam.fsf@gnu.org> X-Mailer: Apple Mail (2.3273) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_8231DA2D-C981-471B-8B87-55AD5D66B1C8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Sep 20, 2017, at 02:12, Eli Zaretskii wrote: >=20 >> From: Barry Warsaw >> Date: Tue, 19 Sep 2017 20:19:40 -0400 >> Cc: 28500@debbugs.gnu.org, Mike Kupfer >>=20 >> I will follow up on that issue, but it=E2=80=99s clearly now not an = Emacs bug. >=20 > Thanks for investigating. Does that mean we can close this bug > report? Yep! And thanks. --Apple-Mail=_8231DA2D-C981-471B-8B87-55AD5D66B1C8 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEhBcVftvnPZ6sHlObEm61Y6dLBr8FAlnCb4IACgkQEm61Y6dL Br82IA/9HK/IGt9XRPAe/Hu+GcAG+uwQ9iTAMczVFDtkTq1dISduQQInspwpmMHk ETVnf7lQv939dHHtNkBx+lby9imCuKSdM6I1wF/cX9Zb6quqHj3xB15g69gdB6L7 uxMyujcR4/CQ94GTUspgwNUnYx4vyyVeCFKP3s5tKZmXg8aA6Sn/i/9wLPZjcIgc 4Um9ZurhwrZnCWaM7EGOcAl3bUtNoA2xvsaztF0U0ZA5swh4RJ02TgNlvaeYAdSP iWE7+tm6kCJKBcaCA4Dbcz8T/WumqeRNPoKZDB7OnY9NuDJ1dP7SvB/PQ7z1iv+n mTJDm+raMakXcpUoZRsYdrnmoFOYboJL40ZQl6Ho4ndzSKqzuKYi4kxOvzh6djh9 hVu14p3f0akgpyiPtWzupxhL2ZsFO1SGA3BFc55vfo1NdrvJayU1mdq3EHJB4VXu 4NAN69xpDNMBdSHek1ia/QWWRK7ZPjkpwWre5Yk0ZMNvATbYSJDRcNXghum8n//n V+0c8mxRUCN15UXbkNN7UFWbKyCCvMPHaIWpFnCyYr4UOrGy4BvQdUsqX3jxroXK fjO6+4oyiWR0r91MwlcXncimjWYkKzyKBctgIIcI85jACGcFR5I2XeHJ+SS4SwyH WxG1mLLqOmd8rFdc6oh21hBUoLW1vPgVaCveuDs0dZ4UbrGP848= =P5dB -----END PGP SIGNATURE----- --Apple-Mail=_8231DA2D-C981-471B-8B87-55AD5D66B1C8-- From unknown Sun Aug 10 11:59:05 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: barry@python.org (Barry A. Warsaw) Subject: bug#28500: closed (Re: bug#28500: 25.3; shell mode starts echoing command) Message-ID: References: <83ingdfpk7.fsf@gnu.org> X-Gnu-PR-Message: they-closed 28500 X-Gnu-PR-Package: emacs Reply-To: 28500@debbugs.gnu.org Date: Wed, 20 Sep 2017 15:10:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1505920204-15481-1" This is a multi-part message in MIME format... ------------=_1505920204-15481-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #28500: 25.3; shell mode starts echoing command which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 28500@debbugs.gnu.org. --=20 28500: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28500 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1505920204-15481-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 28500-done) by debbugs.gnu.org; 20 Sep 2017 15:09:41 +0000 Received: from localhost ([127.0.0.1]:50284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dugdA-00040w-Sw for submit@debbugs.gnu.org; Wed, 20 Sep 2017 11:09:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dugdA-00040k-83 for 28500-done@debbugs.gnu.org; Wed, 20 Sep 2017 11:09:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dugcI-0007ud-Ge for 28500-done@debbugs.gnu.org; Wed, 20 Sep 2017 11:09:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dugac-0003Sq-9D; Wed, 20 Sep 2017 11:07:02 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3537 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dufNY-0003Ys-2O; Wed, 20 Sep 2017 09:49:28 -0400 Date: Wed, 20 Sep 2017 16:49:12 +0300 Message-Id: <83ingdfpk7.fsf@gnu.org> From: Eli Zaretskii To: Barry Warsaw In-reply-to: (message from Barry Warsaw on Wed, 20 Sep 2017 09:39:14 -0400) Subject: Re: bug#28500: 25.3; shell mode starts echoing command References: <20959.1505783153@alto> <27B67310-AFA1-42A3-B0F4-70D567A837CE@python.org> <5C993508-76A7-4A5D-A2B9-6146213B7935@python.org> <83377hhpam.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28500-done Cc: 28500-done@debbugs.gnu.org, mkupfer@alum.berkeley.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Barry Warsaw > Date: Wed, 20 Sep 2017 09:39:14 -0400 > Cc: Andreas Schwab , > 28500@debbugs.gnu.org, > mkupfer@alum.berkeley.edu > > > Thanks for investigating. Does that mean we can close this bug > > report? > > Yep! And thanks. Closing. ------------=_1505920204-15481-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Sep 2017 15:47:10 +0000 Received: from localhost ([127.0.0.1]:46646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtyGM-0004oV-FS for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:47:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtyGJ-0004ne-AV for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:47:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtyGD-0000OQ-1p for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:47:02 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dtyGC-0000Nx-UP for submit@debbugs.gnu.org; Mon, 18 Sep 2017 11:47:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtyGB-000104-Gk for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:47:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtyG8-0000HJ-8x for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:46:59 -0400 Received: from mail.wooz.org ([216.15.33.194]:48490) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dtyG8-0000Ex-4d for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:46:56 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.wooz.org (Postfix) with ESMTP id B6F5D142A46 for ; Mon, 18 Sep 2017 11:46:53 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mail.wooz.org Received: from mail.wooz.org ([127.0.0.1]) by localhost (mail.wooz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KWwkKnGFVh6z for ; Mon, 18 Sep 2017 11:46:53 -0400 (EDT) Received: from resist.wooz.org (resist.wooz.org [192.168.11.57]) by mail.wooz.org (Postfix) with ESMTPS id 73BB81401B3 for ; Mon, 18 Sep 2017 11:46:53 -0400 (EDT) From: barry@python.org (Barry A. Warsaw) To: bug-gnu-emacs@gnu.org Subject: 25.3; shell mode starts echoing command Date: Mon, 18 Sep 2017 11:46:50 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) * M-x shell RET * Go to the shell and type `ls RET` * See the output of the `ls` but *not* the actual `ls` command * Enter an interpreter; two choices which reproduce the problem include `sqlite3` and `python3` Type `sqlite3` at the shell prompt * Type .exit at the sqlite3 prompt (notice that the `.exit` was echo'd before the shell prompt came back; the bug is now active * Type `ls RET` at the shell prompt. Notice that the `ls RET` was echoed before the ls output was printed. Note that using `python3` or even `python` at the prompt will also exhibit the bug. (To exit Python, just type ctrl-D). The only way I've found to "fix" the problem is to ctrl-D to exit the shell, then `M-x shell RET` to restart it in the same buffer. In GNU Emacs 25.3.1 (x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G29)) of 2017-09-14 built on resist.local Windowing system distributor 'Apple', version 10.3.1504 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/25.3/share/info/emacs --prefix=/usr/local/Cellar/emacs/25.3 --without-x --with-xml2 --without-dbus --without-gnutls --without-imagemagick --with-ns --disable-ns-self-contained' Configured features: JPEG NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-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 line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. The mark is not set now, so there is no region Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils shell pcomplete comint ansi-color ring time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev 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 kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 200070 5259) (symbols 48 19931 0) (miscs 40 59 194) (strings 32 16829 5243) (string-bytes 1 489691) (vectors 16 33562) (vector-slots 8 655967 4691) (floats 8 158 281) (intervals 56 252 16) (buffers 976 20)) ------------=_1505920204-15481-1--