From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 20 10:41:43 2019 Received: (at submit) by debbugs.gnu.org; 20 Jul 2019 14:41:43 +0000 Received: from localhost ([127.0.0.1]:57745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoqYQ-0005Eo-Qw for submit@debbugs.gnu.org; Sat, 20 Jul 2019 10:41:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:46376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoqNw-0004yl-1G for submit@debbugs.gnu.org; Sat, 20 Jul 2019 10:30:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58399) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoqNu-0006Wp-N4 for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2019 10:30:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoqNt-0001aB-BX for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2019 10:30:50 -0400 Received: from smtp180.sjtu.edu.cn ([202.120.2.180]:35070) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hoqNs-0001WU-Jj for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2019 10:30:49 -0400 Received: from mta04.sjtu.edu.cn (mta04.sjtu.edu.cn [202.121.179.8]) by smtp180.sjtu.edu.cn (Postfix) with ESMTPS id CAEAA1008CA20 for ; Sat, 20 Jul 2019 22:30:42 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by mta04.sjtu.edu.cn (Postfix) with ESMTP id BF6A3180610E6 for ; Sat, 20 Jul 2019 22:30:42 +0800 (CST) X-Virus-Scanned: amavisd-new at Received: from mta04.sjtu.edu.cn ([127.0.0.1]) by localhost (mta04.sjtu.edu.cn [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id bHsm0GXu-pwp for ; Sat, 20 Jul 2019 22:30:42 +0800 (CST) Received: from mailstore24.sjtu.edu.cn (unknown [202.121.179.24]) by mta04.sjtu.edu.cn (Postfix) with ESMTP id 9F9AC180610D0 for ; Sat, 20 Jul 2019 22:30:42 +0800 (CST) Date: Sat, 20 Jul 2019 22:30:42 +0800 (CST) From: Fan Yang To: bug-gnu-emacs@gnu.org Message-ID: <788003112.20729758.1563633042446.JavaMail.zimbra@sjtu.edu.cn> Subject: 25.2; shell-mode over TRAMP does not read remote history file as comint input ring MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Originating-IP: [101.84.188.60] X-Mailer: Zimbra 8.8.9_GA_3798 (ZimbraWebClient - SAF12.1 (Mac)/8.8.9_GA_3744) Thread-Index: qG0OSvq65Vm3gmRAPpBYFgGBcOyPzg== Thread-Topic: 25.2; shell-mode over TRAMP does not read remote history file as comint input ring X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 202.120.2.180 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 20 Jul 2019 10:41:42 -0400 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.4 (--) * Bug description: When using "M-x shell" on a remote file (say "/scp:yf@val17:"), a bash is started at the server "val17" as the user "yf". But the "*shell*" buffer is started with an empty input ring. It does not read bash history file ("/scp:yf@val17:~/.bash_history") into comint input ring. * What is expected: When using "M-x shell" on a remote file (say "/scp:yf@val17:"), a bash is started at the server "val17" as the user "yf". The "*shell*" 1. has the content of "/scp:yf@val17:~/.bash_history" as comint input ring. And I can use "M-p" to insert previous command, use "M-r" to isearch previous comamnd, etc. 2. the commands I have input in this "*shell*" will be appended to "/scp:yf@val17:~/.bash_history" after shell exit. Just like what "shell-mode" does for local shell. * To re-produce: Here is the content of the dribble file of my re-producing this issue (control characters are replaced with caret) --8<---------------cut here---------------start------------->8--- ^X^F/scp:yf@val17: ^[xshell ^[p^[p^[p^X^Cyes --8<---------------cut here---------------end--------------->8--- * My findings, if I may: The code of shell-mode shows --8<---------------cut here---------------start------------->8--- (setq comint-input-ring-file-name (or (getenv "HISTFILE") (cond ((string-equal shell "bash") "~/.bash_history") ((string-equal shell "ksh") "~/.sh_history") (t "~/.history")))) --8<---------------cut here---------------end--------------->8--- It seems remote file path is not considered. * How big this issue is? Have a shell history is convenient and saves a lot of typing repeated or similar commands. Me and many of my colleagues use shell history isearch heavily. It works very well for local shells. It is a little bit disappointing that it does not work on remote shells. Best Regards, Fan In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-09-23, modified by Debian built on lgw01-amd64-050 System Description: Ubuntu 18.04.2 LTS Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs25-jYekUr/emacs25-25.2+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: 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 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. 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 term/xterm xterm time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 90407 5144) (symbols 48 19870 0) (miscs 40 41 96) (strings 32 14595 4563) (string-bytes 1 413565) (vectors 16 9720) (vector-slots 8 385876 17362) (floats 8 166 540) (intervals 56 245 0) (buffers 976 18)) From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 22 07:12:06 2019 Received: (at 36742) by debbugs.gnu.org; 22 Jul 2019 11:12:06 +0000 Received: from localhost ([127.0.0.1]:60017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpWEf-0000z3-VF for submit@debbugs.gnu.org; Mon, 22 Jul 2019 07:12:06 -0400 Received: from mout.gmx.net ([212.227.17.22]:45731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpWEd-0000yV-Fk for 36742@debbugs.gnu.org; Mon, 22 Jul 2019 07:12:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1563793885; bh=FwCam95t2agUSBxRe10kkQBdBAv98Doffu/AGAlUb0c=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Tmsd9Shyxm5nXAX7N0D9gP9Y5VDCsNltvX+Abw5DTbGmJdqiuXnV3TbqdHIvypwvc bGoUhnzGcwO4Mk/mwH9j8qhvhfGoTtSU0GIvPGMVlEsPyByHbhCTWRomR2ugUT6zPH Q1alH3e9CEQsuvWoUYZWmpPvfrsSG4vZKoUPsLhc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.91.238.185]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M9wrU-1hiwej2EX2-00B4uq; Mon, 22 Jul 2019 13:11:25 +0200 From: Michael Albinus To: Fan Yang Subject: Re: bug#36742: 25.2; shell-mode over TRAMP does not read remote history file as comint input ring References: <788003112.20729758.1563633042446.JavaMail.zimbra@sjtu.edu.cn> Date: Mon, 22 Jul 2019 13:11:21 +0200 In-Reply-To: <788003112.20729758.1563633042446.JavaMail.zimbra@sjtu.edu.cn> (Fan Yang's message of "Sat, 20 Jul 2019 22:30:42 +0800 (CST)") Message-ID: <87h87egw86.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:8HAFfJRXOm3ZcxaP8/6QgyGy9XKUfj8WBJG+g5EzjOr9+Z1kzaS u24R7/pm23c1ZWRyVmmzH3/zSYQg48rmfe4pSS/duCFFd0MZpmp9uh8CIDsa1Klf7GELqpp RVpmT98534ATXHBNqm7oUvoZBElS6ty2ANtbUWKpFJAtR7fWZ8YrZBk7BGbxCJzK7MSAU6+ InNH3JR/02WKlowYMjlbA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ze9N6DUVdKc=:xBX5rtztIN6OaqvzZ9+1EC rjUgKJMXY2I2KN38RMWo8PzZjxWq1g0l4UI3yaGTnyt1zhd+xKc0xRLJ7WOy7byyjJGuDXWPj ItVdxmC1JnQ/g8bbCBIlh6hXUyN3NN+G8kEw+40+dP/RNdJoi26WVk4b7BJVvx3/7dQzZlgLO SnzRRVKAKi4mCYOUXCCt0SubO32F219u29tDitA/cd4TD1YrTAayCRANpg+kUlnhXboulYXSz DAxblvu8v9Qbs7ENU+AO5t/u6SrL+LjrEJdV0jEOqHXRy4APKamQrL8knoUXfTizY94Brg9IF VsNwljfqQrh6ZtPYLQve00P5fiJv4H+biiEAkb3H1FE9i8SieFrA40tCJDOORXEEhGtpQUUqX 0i+pZZXfxxSPpgzgmZOKGHqy2DPqqUWDVSZvOT46485cs7jZMQKH7Ys/mcLW+WyXkcsUkalWp FpHUCehyxxv/7GccqnfIRYBq7E+tEw1MemDp7tNAq2i1XgX2t5ONPEwxYWplTKh3yJCQrGKSi 5ql4IWRXhkD97ajrhCHDlqtsGyQ1mgYnZ+rEGS3f6i4bab+SuqyOUXQkpCBUVqr+yt175p9kl O5wNdtdiFDqb2A5HdideuD/Jl9TqwiCca1RhTFPqPZyTdrIahT1DJDTBFfHqvPJ0cl2uMOIH+ 2pJpwUBJlb18CnLKI4KJZCuKoe5A5ZS7EbRRrCyZ/cAdoUYsiSVR1D2QyicxnI1CBmc4EgjA5 taERPmINPr6dVVv6Bi5bTaC2SwZ4EtuLtd/PSpMR7iroKcXh9eE70rcRH8+Oxu9PzqRw4cyAL qq6maIrXZBE5/0dsG6KC81NDQ2V1MvwEgqviTVhYXpzCS4ebeDgwh9oS4gn48JURyVX1F/vM4 6/oWgt/uh56GfmF89dfc0bp5SDYiSEZAej6pSaY80DgWkjAxL57jeDN3wOPf2g1vcmnKFsoWO squij96kwFIofLtc9IZmmUUZLv5hnnFexuzWvc1u5kTlX9QZpG37NSfxCA7CPnp8VpKth3ykf ub9cIKr7LkxNsphhwtrpgwleJImKukhPVjWqBRXkpVi7UFrFOq3EjrbDQvKE01HDoblKSKYvH 48eATsocs2TzhA4a+tFXJkuzKM4+EZYk0aG X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36742 Cc: 36742@debbugs.gnu.org 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: -1.7 (-) Fan Yang writes: Hi Fan, > * Bug description: > > When using "M-x shell" on a remote file (say "/scp:yf@val17:"), a bash > is started at the server "val17" as the user "yf". But the "*shell*" > buffer is started with an empty input ring. It does not read bash > history file ("/scp:yf@val17:~/.bash_history") into comint input ring. > > * What is expected: > > When using "M-x shell" on a remote file (say "/scp:yf@val17:"), a bash > is started at the server "val17" as the user "yf". The "*shell*" > 1. has the content of "/scp:yf@val17:~/.bash_history" as comint input > ring. And I can use "M-p" to insert previous command, use "M-r" to > isearch previous comamnd, etc. > 2. the commands I have input in this "*shell*" will be appended to > "/scp:yf@val17:~/.bash_history" after shell exit. > Just like what "shell-mode" does for local shell. I've fixed this in the Emacs repository, commit 7f95d2d407. It works as expected, but you shall be aware that the history file contains also the commands Tramp has sent in the background. You shall also set tramp-histfile-override to nil in order to get the expected history file. Do you have a chance to test with a recent Emacs 27.0.50? > Best Regards, > Fan Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 22 07:12:16 2019 Received: (at control) by debbugs.gnu.org; 22 Jul 2019 11:12:16 +0000 Received: from localhost ([127.0.0.1]:60020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpWEq-0000zP-8J for submit@debbugs.gnu.org; Mon, 22 Jul 2019 07:12:16 -0400 Received: from mout.gmx.net ([212.227.15.15]:40933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpWEl-0000zA-V7 for control@debbugs.gnu.org; Mon, 22 Jul 2019 07:12:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1563793922; bh=BbTaR6YrqowOKsJULSxYWKw7gn/UTuzBb7I129jJNNo=; h=X-UI-Sender-Class:Date:To:From:Subject; b=F6xfH8DoxZmgxSTACXvt4+2/H/AF/J4a8uJt7TWsAnbt4Omz789t1L87p6EFKuiDb sZ/cKXRLp8tidsEF5zsjgkbbaJciGfycNSiLV3awqgQjdNlodaaWcwqqxxDU8nGnj5 730juq8kgf6jpUUxlwJ1fI9KJkDtLJOvev1X2mbY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.91.238.185]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LgZRV-1iA1p63ZTx-00nwkk for ; Mon, 22 Jul 2019 13:12:02 +0200 Date: Mon, 22 Jul 2019 13:12:01 +0200 Message-Id: <87ftmygw72.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #36742 X-Provags-ID: V03:K1:mjnkoXFrbp97Hd/pu8QZbxQZUw1pj1vZNXThUTM9sJjFVJchF/s OIhCUPBu62PRUfQcgSKRL9nXux1fCDQqWXJ6Ql5QAX4lUG/i6whdZ0o8MvRM0xp05MTK8Sa OByVQRtdJTGeS3AisSIE7o53LdVAalVp0+yy7zKlQF9l08Az2pslZTf/Glz1Rez3jpMwu1n 5GZ2NyjIuQGoWKQxGCY9Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:zQDV1l/X0ko=:BzaC1gyUXSfy/ZBzA2kI6w UQnY2RjTw5LO84x/xvk8lDN7agLSCirx7OXkaTPvP938+UVtvrq+WcybIFzuWgoFwIr1DG5ZB 6VFj3fgrQUSRdFS2NxJ0KZSbRB+jHUZVjJCD5ypJ7latjnb75DrNlQW3sZxtH42WJqa6+DeEl 5tGGvydAidiv2HReJP9iN7ZOskBm7bqs2AIG4ujRaN7noa/Z/+fq0sexYwC+VTUr2D6GWjxsT FqdiF1KQQKLWq1dDLB2ENV+UoUz0XcazLI0c+rHQAkw5sSvq3Zgw6dTKIO66LYDvaQJfXB+UR GxTqgDRVN6IYq3qpsSTIELIDIypY5X5e2IbVLOF5S4WzbPGrhzaSZyvCiA8hMmYiqujMgQL9d f+7dwEFgdSKzElCXfrFfd31zRGL8peQecuUddLMn29QJLnoROy1hlt3rWycpzgrG6T6ePunxH tcZ8rwXrFBc8ApxXqRP8PD9cDmrvSo4prH6C7HymnA4Ol3+Mqtv3v/CEzwsAH2MM0mIS23/Gk ATpxcaebtuHx/yP/FgQSRTJoTE3hewNkiby0mXMFiclYFnGfxYDbSlmJD4/GPJyqYMmVKjRJs +tWy+1+HiRXUi8PCaYTlKu8dIXy8JIFpDeHv49qf6EirpLIf30qSX6sft7e0VhsekJf8gd6eN yfAXWBVGYze2h67kvknK5mzGR+jOezQeY2RF6R3Fmdg6MlAB1ZhbvN4zA9LbnDQeKTd6X7kgp pD4eLLTBr+IMHfg55n8gircvUXfJo21xCy63DK77AzO7c8yewo2BDPsKgmE8jChCH8iYcVBEs EHpFnmjMELyE3BzdPjso31vJmhkFkB5c4C7JIlmPAcLep2s6tMB0d/8aR1p/WNsLo9q+zGNVW pPg99GCzYGkT/XAtnjJL6vUWLeYttXdtXfPEdPP7LYX8ftXkqubG6tWzncPFW6yO+R2Wi0qpq ValerWqPkkjAyVjd/XhQrwv4FW2VULwa7nnx+Zl1Cj3UfgmabHMxVQ0py9Zcd8eIkVhKI2v36 5xzvOFDiHJ2kVdRPP0GlZ8iA+nC1LstpB39LPHgju1ZootNtgjmqwqRjCyj9hoVtlByin8kV9 VMAW1SWxDGKMIM= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) fixed 36742 27.1 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 22 22:02:18 2019 Received: (at 36742) by debbugs.gnu.org; 23 Jul 2019 02:02:19 +0000 Received: from localhost ([127.0.0.1]:33792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpk8A-00083F-Ha for submit@debbugs.gnu.org; Mon, 22 Jul 2019 22:02:18 -0400 Received: from smtp180.sjtu.edu.cn ([202.120.2.180]:44316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpk1k-0007rp-To for 36742@debbugs.gnu.org; Mon, 22 Jul 2019 21:55:42 -0400 Received: from proxy01.sjtu.edu.cn (unknown [202.112.26.54]) by smtp180.sjtu.edu.cn (Postfix) with ESMTPS id 2D1C11008CBC1; Tue, 23 Jul 2019 09:55:36 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by proxy01.sjtu.edu.cn (Postfix) with ESMTP id 1E7A32042423F; Tue, 23 Jul 2019 09:55:36 +0800 (CST) X-Virus-Scanned: amavisd-new at proxy01.sjtu.edu.cn Received: from proxy01.sjtu.edu.cn ([127.0.0.1]) by localhost (proxy01.sjtu.edu.cn [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id AbSJHVSxjLGl; Tue, 23 Jul 2019 09:55:35 +0800 (CST) Received: from fans-air.ipads-lab.se.sjtu.edu.cn (unknown [202.120.40.82]) (Authenticated sender: Fan_Yang@sjtu.edu.cn) by proxy01.sjtu.edu.cn (Postfix) with ESMTPSA id E2FBC2042423E; Tue, 23 Jul 2019 09:55:35 +0800 (CST) From: Fan_Yang Message-Id: <5B22982A-F6D3-4615-B3C9-C63019B27D99@sjtu.edu.cn> Content-Type: multipart/alternative; boundary="Apple-Mail=_D0E91928-957C-4FE5-B699-748CB1CD6728" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: bug#36742: 25.2; shell-mode over TRAMP does not read remote history file as comint input ring Date: Tue, 23 Jul 2019 09:55:35 +0800 In-Reply-To: <87h87egw86.fsf@gmx.de> To: Michael Albinus References: <788003112.20729758.1563633042446.JavaMail.zimbra@sjtu.edu.cn> <87h87egw86.fsf@gmx.de> X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Michael! I have cloned the git repo and tested your commit. It works well in my environment! > ...but you shall be aware that the history file contains also the > commands Tramp has sent in the background. Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gmx.de] 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [202.120.40.82 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [202.120.2.180 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 HTML_MESSAGE BODY: HTML included in message X-Debbugs-Envelope-To: 36742 X-Mailman-Approved-At: Mon, 22 Jul 2019 22:02:17 -0400 Cc: 36742@debbugs.gnu.org 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.5 (/) --Apple-Mail=_D0E91928-957C-4FE5-B699-748CB1CD6728 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=gb2312 Hi Michael! I have cloned the git repo and tested your commit. It works well in my=20= environment! > ...but you shall be aware that the history file contains also the > commands Tramp has sent in the background. I see. It is reasonable and acceptable. > You shall also set tramp-histfile-override to nil in order to get the > expected history file. OK, thanks for reminding~ Fan > =D4=DA 2019=C4=EA7=D4=C222=C8=D5=A3=AC19:11=A3=ACMichael Albinus = =D0=B4=B5=C0=A3=BA >=20 > Fan Yang > writes: >=20 > Hi Fan, >=20 >> * Bug description: >>=20 >> When using "M-x shell" on a remote file (say "/scp:yf@val17:"), a = bash >> is started at the server "val17" as the user "yf". But the "*shell*" >> buffer is started with an empty input ring. It does not read bash >> history file ("/scp:yf@val17:~/.bash_history") into comint input = ring. >>=20 >> * What is expected: >>=20 >> When using "M-x shell" on a remote file (say "/scp:yf@val17:"), a = bash >> is started at the server "val17" as the user "yf". The "*shell*" >> 1. has the content of "/scp:yf@val17:~/.bash_history" as comint input >> ring. And I can use "M-p" to insert previous command, use "M-r" to >> isearch previous comamnd, etc. >> 2. the commands I have input in this "*shell*" will be appended to >> "/scp:yf@val17:~/.bash_history" after shell exit. >> Just like what "shell-mode" does for local shell. >=20 > I've fixed this in the Emacs repository, commit 7f95d2d407. It works = as > expected, but you shall be aware that the history file contains also = the > commands Tramp has sent in the background. >=20 > You shall also set tramp-histfile-override to nil in order to get the > expected history file. >=20 > Do you have a chance to test with a recent Emacs 27.0.50? >=20 >> Best Regards, >> Fan >=20 > Best regards, Michael. --Apple-Mail=_D0E91928-957C-4FE5-B699-748CB1CD6728 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=gb2312 Hi = Michael!

I have = cloned the git repo and tested your commit.  It works well in = my 
environment!

...but you shall be aware that the history file contains also = the
commands Tramp has sent in the = background.

I see. =  It is reasonable and acceptable.

You = shall also set tramp-histfile-override to nil in order to get the
expected history file.

OK, thanks for reminding~

Fan


=D4=DA 2019=C4=EA7=D4=C222=C8=D5=A3=AC19:11=A3=AC= Michael Albinus <michael.albinus@gmx.de> =D0=B4=B5=C0=A3=BA

Fan Yang <fan_yang@sjtu.edu.cn> writes:

Hi Fan,

* Bug = description:

When using "M-x shell" on a = remote file (say "/scp:yf@val17:"), a bash
is started at = the server "val17" as the user "yf".  But the "*shell*"
buffer is started with an empty input ring.  It does not = read bash
history file ("/scp:yf@val17:~/.bash_history") = into comint input ring.

* What is = expected:

When using "M-x shell" on a = remote file (say "/scp:yf@val17:"), a bash
is started at = the server "val17" as the user "yf".  The "*shell*"
1. = has the content of "/scp:yf@val17:~/.bash_history" as comint input
  ring.  And I can use "M-p" to insert = previous command, use "M-r" to
  isearch = previous comamnd, etc.
2. the commands I have input in = this "*shell*" will be appended to
  "/scp:yf@val17:~/.bash_history" after shell = exit.
Just like what "shell-mode" does for local shell.

I've fixed this in the Emacs repository, commit 7f95d2d407. = It works as
expected, but = you shall be aware that the history file contains also the
commands Tramp has sent in the = background.

You shall = also set tramp-histfile-override to nil in order to get the
expected history file.

Do you have a chance to test = with a recent Emacs 27.0.50?

Best Regards,
Fan

Best regards, Michael.

= --Apple-Mail=_D0E91928-957C-4FE5-B699-748CB1CD6728-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 23 03:08:57 2019 Received: (at 36742-done) by debbugs.gnu.org; 23 Jul 2019 07:08:58 +0000 Received: from localhost ([127.0.0.1]:33945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpouv-0003OR-IQ for submit@debbugs.gnu.org; Tue, 23 Jul 2019 03:08:57 -0400 Received: from mout.gmx.net ([212.227.15.15]:47215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpout-0003OB-FJ for 36742-done@debbugs.gnu.org; Tue, 23 Jul 2019 03:08:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1563865714; bh=tZ7XZMch2+rWFbiN6c36sZ2SnuG5r0gtYxbcaAaiPTc=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=IMr4r75igadkUrtw0TKu5oRbLQIv+5kfsXUJydvgVONQVzDIoaQ5parxI1J0NlNgz RQsxN1mTl+dMyNlDZRgmIpeSsMot3pn8Ij3gFaxmRrNgGBsUcuoluPhya82zw01RSK q+mdBuyOlNYV2FWSHNp8xRjzH+g/Hj7mGIf9WicA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.86.52.13]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MY7ZA-1huEjK1KoC-00Und7; Tue, 23 Jul 2019 09:08:34 +0200 From: Michael Albinus To: Fan_Yang Subject: Re: bug#36742: 25.2; shell-mode over TRAMP does not read remote history file as comint input ring References: <788003112.20729758.1563633042446.JavaMail.zimbra@sjtu.edu.cn> <87h87egw86.fsf@gmx.de> <5B22982A-F6D3-4615-B3C9-C63019B27D99@sjtu.edu.cn> Date: Tue, 23 Jul 2019 09:08:30 +0200 In-Reply-To: <5B22982A-F6D3-4615-B3C9-C63019B27D99@sjtu.edu.cn> (Fan Yang's message of "Tue, 23 Jul 2019 09:55:35 +0800") Message-ID: <8736ix8byp.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:FQdDqGIW1Ue+r7ZtsY5zDP+wpL+V5CtOotIePI4meykxTp0w3kG KRmiF3u09By3ZgN3KoQIv715Xr46roo0m50OQmTniktpsGAiVcTWXgul2ef0H2Erxf8SHSg p7PKpBmhAP1nFu5on+/D1DYG1S1BDuELi+kPklUAP2mhWzNvgoRcdlDrpwX2GKjy2CLKfwt bVdW1btPcrk+h62bf2oFg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:k+QTyGby70A=:XmFejJ6umVuowtor/iow95 a+lbGlK/DsQxW4gT4gPIllaLO/P/AnjKcch2JVejhkVTRwq4jLJb565qJ2H9qXLJ+aiKTEBv4 jdVIpQhRWH6LPDHJblW6ccxUv0qoDZengmdq3xdy7xVr6+4tr4J3Lqyi9ZgGWXsMnihuWxb87 IykNtyEdee2b0m9h7n3eWlEd8Txw7r7d9TSpjBkPoCUp8Djxb7YbINZtFg/Pe+MZzww9Zn9Wz Eee5NqPlbjF9gcx9kDVwOdeOkaMaRAOh3R4vgzzm46Dohvaub84WxhsGGdC6C3e2yCga4CUaO G/H8unDZCtg9h76Bi3ErGcRxFh4hJ52JFc1l7r5AITn0rU2OaTGKbZRA9v7PIT57h24b3iTM2 WgcP4gQ9bu5/xaUEVNwlmQH+PBkfTja4Pr9wYGzOUcULkrjy4VvbpNc0iE3WmI3QMmS7/En+n WtU2W32shVi+UE/P/2pfA7/6kEm6iH4yQbISjaufyxihIA9ZlK5AlDiqKXp9lCyvjVswIjmRk x2EhqY0RzfvXNSrEeJFbFWDRKo9M3FPpkMmqwhWelky1XaEq+za/REDgoL+mDYgDl8AXVxcxC akCVM6l6hhP5UCUNJZD71E1/xNLiky90E/F6IJJayPyX/O/+e4A7//1wfKuuVRhhd5NF6ZAZO hi5cXIpGisC0qAIgBhYeYCeTgbm45kDrRyqlgzbNfdVX5t6a2bOL0VpLgOFP0Sd/el7ki8hZf BmuK8oW216D1JneEjTDsg/V7kVoCTqPfzM+7Mk53iA7uiLV1Cd9t5O+QzTPF37Pb75Dam0Io5 pETI9EsUh9bTyOOsDRPbWrM6lkeZoEHkEdNtqCsrOOZRP5Ya7hZsrUAvNrEfgGC+iccxYFtl9 haAwOO2wHeFE51vcH7nVyLLQIW343yTsmgH3UNhWtVIx5fUbCgZ0joiCvEp2N9oMysL0oQtjB THdr4tZQ9hVh5PWlJn/tO8ocuHwN2oljJoBfuavYW+4w0Q4cXIvRwMCq2seepCy9qSaW9KBuQ Dro5Ijs2Cvzp2gJ8xipY1DLPCpljgtAtyaXHBt69o/D53vbpKmNYL07SIcZEUt8hD+B3hYRln wKrOeiJfBQZyLT4px+iSeVYboJUvfs5fWPz X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36742-done Cc: 36742-done@debbugs.gnu.org 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: -1.0 (-) Version: 27.1 Fan_Yang writes: > Hi Michael! Hi Fan, > I have cloned the git repo and tested your commit. It works well in > my environment! Thanks for the feedback, I'm closing the bug. > Fan Best regards, Michael. From unknown Sun Jun 22 04:00:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 20 Aug 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator