From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Newsgroups: gmane.emacs.bugs Subject: bug#67259: 29.1; shell/term behavior different from other terminal emulators Date: Sat, 18 Nov 2023 10:55:53 +0100 Message-ID: <18be1dbb3c7.10690fc703382635.7777970297366947027@excalamus.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17459"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Zoho Mail To: 67259@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 18 11:50:35 2023 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 1r4IuJ-0004LH-2j for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Nov 2023 11:50:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4Ito-0004BL-2L; Sat, 18 Nov 2023 05:50:04 -0500 Original-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 ) id 1r4Itm-000461-EZ for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2023 05:50:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4Itm-0002nV-4w for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2023 05:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r4Itm-0001Oz-IW for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2023 05:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Matt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Nov 2023 10:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67259 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs" Original-Received: via spool by submit@debbugs.gnu.org id=B.17003045555323 (code B ref -1); Sat, 18 Nov 2023 10:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Nov 2023 10:49:15 +0000 Original-Received: from localhost ([127.0.0.1]:47886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4Isy-0001Nh-QG for submit@debbugs.gnu.org; Sat, 18 Nov 2023 05:49:14 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:36582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4I3g-0008Rz-Ae for submit@debbugs.gnu.org; Sat, 18 Nov 2023 04:56:14 -0500 Original-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 ) id 1r4I3Z-0002U5-Sq for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2023 04:56:05 -0500 Original-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 ) id 1r4I3U-0002Oh-0I for bug-gnu-emacs@gnu.org; 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@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1700301356; s=zmail; d=excalamus.com; i=matt@excalamus.com; 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= Original-Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1700301353994929.5163403507694; Sat, 18 Nov 2023 01:55:53 -0800 (PST) Importance: Medium X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.188.15; envelope-from=matt@excalamus.com; 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-Mailman-Approved-At: Sat, 18 Nov 2023 05:49:06 -0500 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274551 Archived-At: 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))