From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24478: 25.1; Regression in 25.1: .tramp_history files are littered in non-$HOME working directories Date: Mon, 10 Oct 2016 13:38:08 +0300 Message-ID: <83int0ebfz.fsf@gnu.org> References: <8737kuan39.fsf@booking.com> <87zimzke24.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1476096111 7500 195.159.176.226 (10 Oct 2016 10:41:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2016 10:41:51 +0000 (UTC) Cc: avar@booking.com, avarab@gmail.com, 24478@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 10 12:41:47 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 1btY1U-0007oc-Cx for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Oct 2016 12:41:32 +0200 Original-Received: from localhost ([::1]:48767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btY1S-0005vM-6V for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Oct 2016 06:41:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btXzA-0004ad-AN for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 06:39:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btXz4-0003w7-W2 for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 06:39:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btXz4-0003w1-TP for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 06:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1btXz4-0000jJ-PM for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 06:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Oct 2016 10:39: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.14760958872719 (code B ref 24478); Mon, 10 Oct 2016 10:39:02 +0000 Original-Received: (at 24478) by debbugs.gnu.org; 10 Oct 2016 10:38:07 +0000 Original-Received: from localhost ([127.0.0.1]:50529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btXyB-0000hn-1v for submit@debbugs.gnu.org; Mon, 10 Oct 2016 06:38:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btXy9-0000hC-RH for 24478@debbugs.gnu.org; Mon, 10 Oct 2016 06:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btXy0-0003Ii-LU for 24478@debbugs.gnu.org; Mon, 10 Oct 2016 06:38:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btXy0-0003IB-Ib; Mon, 10 Oct 2016 06:37:56 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3026 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1btXxz-0000BI-42; Mon, 10 Oct 2016 06:37:55 -0400 In-reply-to: <87zimzke24.fsf@gmx.de> (message from Michael Albinus on Thu, 22 Sep 2016 20:02:59 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:124294 Archived-At: > From: Michael Albinus > Date: Thu, 22 Sep 2016 20:02:59 +0200 > Cc: Ævar Arnfjörð Bjarmason , > 24478@debbugs.gnu.org > > Ævar Arnfjörð Bjarmason writes: > > Hi, > > > There's a regression in 25.1 introduced by 1e04ea9 (although that seems > > to also have fixed an issue): Now tramp-histfile-override is set to > > ".tramp_history", which is good, but I would expect it to be created in > > $HOME on remote hosts. > > > > Instead when I e.g.: > > > > 1. C-x C-f //ssh::/usr/local/git_tree/sysadmin/ > > 2. Run e.g. magit to make a commit > > 3. I end up with: > > > > $ echo $PWD/.tramp_history > > /usr/local/git_tree/sysadmin/.tramp_history > > $ wc -l !$ > > wc -l $PWD/.tramp_history > > 34 /usr/local/git_tree/sysadmin/.tramp_history > > Most of the shells I know off use the home directory, when you specify > just the relative file name ".tramp_history". > > > From reading https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20446 and > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19731#56 this seems like > > an unintended bug. > > > > Just setting: > > > > (setq tramp-histfile-override "~/.tramp_history") > > > > Works for me. Now it's always created in ~. > > I have thought about this, when I was fixing bug#19731. Unfortunately, > there exist shells which cannot expand "~/". Other shells cannot expand > "$HOME/". So I really don't know a robust default we could offer. > > Maybe one should give this problem more emphasis in the Tramp > manual. But who reads manuals? Michael, does the above mean this bug should be closed as wontfix? It currently blocks a release, so I'd like to resolve this some way soon. Thanks.