GNU bug report logs - #67259
29.1; shell/term behavior different from other terminal emulators

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: Matt <matt@HIDDEN>; dated Sat, 18 Nov 2023 10:50:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 67259) by debbugs.gnu.org; 18 Jan 2024 18:18:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 18 13:18:16 2024
Received: from localhost ([127.0.0.1]:56625 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rQWy0-0003aj-JE
	for submit <at> debbugs.gnu.org; Thu, 18 Jan 2024 13:18:16 -0500
Received: from mout02.posteo.de ([185.67.36.66]:57531)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yantar92@HIDDEN>) id 1rQWxy-0003aT-Bi
 for 67259 <at> debbugs.gnu.org; Thu, 18 Jan 2024 13:18:15 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id C24F2240101
 for <67259 <at> debbugs.gnu.org>; Thu, 18 Jan 2024 19:18:06 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1705601886; bh=uavzauNpZxQAV1HCX/nlQosCMQnWV2DNOZYkDyddLho=;
 h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From;
 b=GDTG2NEFzSHn6oBEuWuaVQa9mP49dq2iYafUf7e4KanPdAb2fjSf/kEgiPASVEOXC
 E/anUuCPqTZi7XHISGik1kEkUt/TzMsTQmn6oi9oCYGh7ZVslIT/iK3eZY3lBSNTUL
 5AMYVO+XUUQQSyAVBlA9wRwjrqqbzngsBHkpNqombWQjUwCuVKD6z+zvtOBb+s9t0p
 4Z65o52QBb4h53qagfc/RS+CtaLUcicqe0PyPOEKa519+2CWyKPp1P43AeZ30kulaO
 e0XX2BqH+EyyrrmmO4pgCx9qTIb+oFct0x6W+neqrjv9DaK8zvSqK5XCwxMz8CGMkS
 HHtktIgAuTReQ==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4TG9wG2cppz6tvr
 for <67259 <at> debbugs.gnu.org>; Thu, 18 Jan 2024 19:18:06 +0100 (CET)
From: Ihor Radchenko <yantar92@HIDDEN>
To: 67259 <at> debbugs.gnu.org
Subject: Re: bug#67259: 29.1; shell/term behavior different from other
 terminal emulators
In-Reply-To: <18be1dbb3c7.10690fc703382635.7777970297366947027@HIDDEN>
References: <18be1dbb3c7.10690fc703382635.7777970297366947027@HIDDEN>
Date: Thu, 18 Jan 2024 18:21:22 +0000
Message-ID: <87cytypknx.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 67259
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: -3.3 (---)

Matt <matt@HIDDEN> writes:

> To reproduce with M-x shell:
>
> 1. emacs -Q
> 2. M-x shell
> 3. Copy the following two lines:
>
> ssh localhost "echo foo>foo_file"
> echo "bar"
>
> 4. Paste them into a non-Emacs terminal emulator (tested with xterm or xfce4-terminal) and press return
> 5. After entering the correct password, "bar" is echoed
> 6. Paste them into the buffer associated with M-x shell
> 7. After entering the correct password, "bar" is NOT echoed

Bump!

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




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

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


Received: (at submit) by debbugs.gnu.org; 18 Nov 2023 10:49:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 18 05:49:14 2023
Received: from localhost ([127.0.0.1]:47886 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r4Isy-0001Nh-QG
	for submit <at> debbugs.gnu.org; Sat, 18 Nov 2023 05:49:14 -0500
Received: from lists.gnu.org ([2001:470:142::17]:36582)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <matt@HIDDEN>) id 1r4I3g-0008Rz-Ae
 for submit <at> debbugs.gnu.org; Sat, 18 Nov 2023 04:56:14 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <matt@HIDDEN>)
 id 1r4I3Z-0002U5-Sq
 for bug-gnu-emacs@HIDDEN; Sat, 18 Nov 2023 04:56:05 -0500
Received: from sender4-op-o15.zoho.com ([136.143.188.15])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <matt@HIDDEN>)
 id 1r4I3U-0002Oh-0I
 for bug-gnu-emacs@HIDDEN; Sat, 18 Nov 2023 04:56:05 -0500
ARC-Seal: i=1; a=rsa-sha256; t=1700301356; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=NROTjQJMSP3lxc8vFq7ufBCVpkHWA1oeENjk2cSFg7xSh8LXTaMYtFdmn6BzB3yTObMCSnFwymGVwSRU0B27KbsUCxsSPLXUfTQJ21bLTiup8EWIZgvkdgxJyNcnvJKaIjm1Pu/SCCGR+ircz/tOGBTinYTVabNt+TxyEv6Z6CE=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1700301356;
 h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc;
 bh=det3Z+nNrHzs/OefohQ8ACHLDiC19RJ0Hrw3PXMXPb0=; 
 b=OZNiwVhkJqKWAG7rToVSNRfcGFfM0y01pZPK72Zn6OEzoQDa7kh8na6g7yKZB6Jc4bkLM5ud3vFnVWhVbR7Vh/gBUlOeweu5rLMm6XVmO13bbLAIgX1Ce2DqoX15TSFm0/gv1ztnv/EqAZ5M9ummvPBCX49fmTQcUoU0jc9dLeM=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=excalamus.com;
 spf=pass  smtp.mailfrom=matt@HIDDEN;
 dmarc=pass header.from=<matt@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1700301356; 
 s=zmail; d=excalamus.com; i=matt@HIDDEN;
 h=Date:Date:From:From:To:To:Message-ID:In-Reply-To:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc;
 bh=det3Z+nNrHzs/OefohQ8ACHLDiC19RJ0Hrw3PXMXPb0=;
 b=Ca7E0/TwPjVGk7fopkXKGHGDSUK9HS9UODMOFIHkaw/DOcCU+tQ7YywtNj9jaNeE
 kRQ2KlNVe7P7kp6hEo8caSBln68eeWYt0fBZIyl6ifpAlwsQGQ3oiNxckWnV1eV4qhm
 YAvl5WAkXYoKyYlmby0SsrDUx5tAGUNkDKEvTRas=
Received: from mail.zoho.com by mx.zohomail.com
 with SMTP id 1700301353994929.5163403507694;
 Sat, 18 Nov 2023 01:55:53 -0800 (PST)
Date: Sat, 18 Nov 2023 10:55:53 +0100
From: Matt <matt@HIDDEN>
To: "bug-gnu-emacs" <bug-gnu-emacs@HIDDEN>
Message-ID: <18be1dbb3c7.10690fc703382635.7777970297366947027@HIDDEN>
In-Reply-To: 
Subject: 29.1; shell/term behavior different from other terminal emulators
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Importance: Medium
User-Agent: Zoho Mail
X-Mailer: Zoho Mail
Received-SPF: pass client-ip=136.143.188.15; envelope-from=matt@HIDDEN;
 helo=sender4-op-o15.zoho.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 18 Nov 2023 05:49:06 -0500
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.0 (/)

I'm helping to maintain Org mode's shell interaction.  The following
was reported to the Org list.

Emacs M-x shell and M-x term executing in term-line-mode both produce
a different result than expected as compared to terminal emulators
like xterm or xfce4-terminal running Bash.  For non-Emacs terminal
emulators, "bar" is echoed.  M-x shell and M-x term executing in
term-line-mode do *not* echo "bar".

To reproduce with M-x shell:

1. emacs -Q
2. M-x shell
3. Copy the following two lines:

ssh localhost "echo foo>foo_file"
echo "bar"

4. Paste them into a non-Emacs terminal emulator (tested with xterm or xfce4-terminal) and press return
5. After entering the correct password, "bar" is echoed
6. Paste them into the buffer associated with M-x shell
7. After entering the correct password, "bar" is NOT echoed

To reproduce with M-x term:

1. emacs -Q
2. M-x term
3. C-c C-j to switch to term-line-mode
4. Copy the following two lines:

ssh localhost "echo foo>foo_file"
echo "bar"

5. Paste them into the buffer associated with M-x term
6. After entering the correct password, "bar" is NOT echoed

In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37,
cairo version 1.16.0)
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Guix System

Configured using:
 'configure
 CONFIG_SHELL=/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/bash
 SHELL=/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/bash
 --prefix=/gnu/store/xjrhyapm3zwgpmq5baz6m9kavz287jjj-emacs-29.1
 --enable-fast-install --with-cairo --with-modules
 --with-native-compilation=aot --disable-build-details'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3
THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM
GTK3 ZLIB

Important settings:
  value of $EMACSLOADPATH: /home/ahab/.guix-profile/share/emacs/site-lisp:/gnu/store/xjrhyapm3zwgpmq5baz6m9kavz287jjj-emacs-29.1/share/emacs/29.1/lisp
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-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
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra
help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv
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 nadvice seq simple cl-generic
indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 79918 9356)
 (symbols 48 7446 0)
 (strings 32 20277 1733)
 (string-bytes 1 627375)
 (vectors 16 16608)
 (vector-slots 8 334511 19434)
 (floats 8 27 46)
 (intervals 56 235 0)
 (buffers 984 11))
   




Acknowledgement sent to Matt <matt@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#67259; 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: Sat, 20 Jan 2024 12:30:02 UTC

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