From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#24478: 25.1; Regression in 25.1: .tramp_history files are littered in non-$HOME working directories Date: Wed, 12 Oct 2016 16:05:44 +0200 Message-ID: <87mvi9ll1j.fsf@gmx.de> References: <8737kuan39.fsf@booking.com> <87zimzke24.fsf@gmx.de> <83int0ebfz.fsf@gnu.org> <87y41vm1nn.fsf@gmx.de> <874m4jrlli.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1476281201 20000 195.159.176.226 (12 Oct 2016 14:06:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2016 14:06:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 24478@debbugs.gnu.org, Ted Zlatanov To: =?UTF-8?Q?=C3=86var_?= =?UTF-8?Q?Arnfj=C3=B6r=C3=B0?= Bjarmason Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 12 16:06:37 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buKAj-0002Lh-90 for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Oct 2016 16:06:17 +0200 Original-Received: from localhost ([::1]:33824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buKAh-0001aD-Un for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Oct 2016 10:06:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buKAV-0001XL-J2 for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2016 10:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buKAU-0004gr-FW for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2016 10:06:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buKAU-0004gh-DA for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2016 10:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1buKAU-0006Sp-2M for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2016 10:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Oct 2016 14:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24478 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24478-submit@debbugs.gnu.org id=B24478.147628115724836 (code B ref 24478); Wed, 12 Oct 2016 14:06:02 +0000 Original-Received: (at 24478) by debbugs.gnu.org; 12 Oct 2016 14:05:57 +0000 Original-Received: from localhost ([127.0.0.1]:53170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buKAP-0006SW-5M for submit@debbugs.gnu.org; Wed, 12 Oct 2016 10:05:57 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:51624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buKAM-0006SG-RV for 24478@debbugs.gnu.org; Wed, 12 Oct 2016 10:05:55 -0400 Original-Received: from detlef.gmx.de ([87.146.59.234]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MbJTE-1bbYrP070e-00IpBc; Wed, 12 Oct 2016 16:05:47 +0200 In-Reply-To: ("=?UTF-8?Q?=C3=86var_?= =?UTF-8?Q?Arnfj=C3=B6r=C3=B0?= Bjarmason"'s message of "Tue, 11 Oct 2016 16:47:38 +0200") X-Provags-ID: V03:K0:bnRxN+/5keZ8eXDJRIHLIm5MRKMumGGq9j3x0NxmlYEaJJksv2J XM+qUIWPUk7Iap4FeBSEml6i71giLJxql/L1t7AVFLPmpXqqmKqPvTYHsgyyZV1PUmxCnj7 vPevFc4vnWJYwjiKQwP5dcyLRN11FWFEfj8JFsJk2p6DW1TR7L3Q9GybJmoaGvC4VALJAH0 BbMi075ne0DfS2LB+Qb+g== X-UI-Out-Filterresults: notjunk:1;V01:K0:CpzwZSIyHP8=:OLUHrsP+Anfr0T2zzkqUG0 7QRz8ATe7JJgcak2ztfoYduuibnnTIH2hFkKuQmgHCwfbPHtO/3cMV67spgV5SuGJR92sUoBu O1mvg6YipThiMki9bDMOlVMyBNkMNZrGqKBcVvo20MdSK6pN87YuffFLge39l9uoC5aNBzOTM hhL4MCz62LUleAtAeV7fq5/i5ZM5p1W8q8j5r7vWHkCd4o6f/zQgoZFRpLrVthD+6UErjbWVy QTo1PbZeUCNehOpup54jvMymiTBb2g3nfMOIVEYs+KmIBp9v8N7J6XkV56yofOwLv2evtGwOm HL/nAF0lCm6fsiFvBOoMUiz1KLVVbFecuUOT59HYJI0FwF/MzDRFGP8teHr5qfoC4ut/xd2o9 qO51iZgZK2Hes5lWX+FYNBJ5T7Ma/AsORKySDpdMrXsjIKt9Eamx9IMj56tb2Zy1jND44Evwl cPP4KY/QrspWMFtuto8SO0AeCaM370XnRHOFCNL/zB/oW/9kOWZnTL2z9lfzm7afPtT843Z+e 8QNoUA/xIQdSJz0LihIVJOF1lsWsoO95BeqnVlBo3GSI0kfB1uYrUQaicHHNdrV3tltof2d9F x98KNSKbrtT497HM4bxjXiugxuIqgZiwKJg05ScsJYc+20W06QbvLNge65HKFbrFPA6qc1tAO jPLkMsav7jr7MqRqkdT4napezZCOaj414rLKevOHxHxmDDFECZpVRbzE/1K7oxVDKRpFYuWza 6HCtagoBo3V6mz4Dc4GG7JmudVp/aQcQ/UUfyFoIGfdczadRJSnI9Xi3Dx/hmJCPqx/pVlw7 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124387 Archived-At: =C3=86var Arnfj=C3=B6r=C3=B0 Bjarmason writes: Hi =C3=86var, >>> All I'm doing is e.g.: >>> >>> 1. C-x C-f //ssh:puppet-staging:/etc/puppet/environment/aearnfjord/pupp= et RET >>> 2. Run some command e.g. M-x grep >>> 3. This results in: >>> $ wc -l $PWD/.tramp_history >>> 39 /etc/puppet/environments/aearnfjord/puppet/.tramp_history >> >> OK, so this is about running an asynchronous process on the remote >> host. This shall help me to reproduce it locally, thanks for the recipe. > > If you mean the M-x grep from the .tramp_history (in that > /etc/puppet/... directory) it starts much earlier than that, i.e. > Tramp's own post-connection commands go to that file, and then the > last command is my M-x grep: Thanks. So it is related to `tramp-open-shell', which comes just prior these commands. I've tried it with several configurations, but I could not reproduce the problem locally. I suppose this behaviour is related to the used shell on the remote host. What is /bin/sh on your remote machine? So again, could you pls start a new Emacs, set tramp-verbose to 6, and connect to the remote host where it happens?. And I need the full debug buffer then, because there are a lot of other information which could tell us what's up. If you have privacy concerns showing this publicly, pls send it to me directly. Best regards, Michael.