From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#19731: 24.4; /dev/null is deleted by tramp-sh.el Date: Mon, 02 Feb 2015 15:08:10 -0500 Message-ID: References: <87r3u8k065.fsf@gmx.de> <87mw4wjyqi.fsf@gmx.de> <87h9v4jxde.fsf@gmx.de> <87d25sjwgj.fsf@gmx.de> <87d25s2ium.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1422907759 27034 80.91.229.3 (2 Feb 2015 20:09:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 20:09:19 +0000 (UTC) Cc: crocket , 19731@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 02 21:09:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YINJ5-00080R-Ge for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2015 21:09:15 +0100 Original-Received: from localhost ([::1]:56446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YINJ4-0002ST-Hu for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2015 15:09:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YINIt-0002Rh-Jw for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 15:09:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YINIs-00078I-Gd for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 15:09:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YINIs-00078C-DK for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 15:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YINIs-00022p-4v for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 15:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Feb 2015 20:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19731 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19731-submit@debbugs.gnu.org id=B19731.14229076977799 (code B ref 19731); Mon, 02 Feb 2015 20:09:02 +0000 Original-Received: (at 19731) by debbugs.gnu.org; 2 Feb 2015 20:08:17 +0000 Original-Received: from localhost ([127.0.0.1]:60711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YINI8-00021i-Rh for submit@debbugs.gnu.org; Mon, 02 Feb 2015 15:08:17 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:47022 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YINI6-00021a-8d for 19731@debbugs.gnu.org; Mon, 02 Feb 2015 15:08:14 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YINI3-000151-SX; Mon, 02 Feb 2015 15:08:12 -0500 X-Spook: Yukon computer terrorism genetic Kosovo ASDIC South X-Ran: K&-tFRdJ,|9SUMqO^}9f[WlRhOTbUe8ejbXabUgQ14c>kq4.TB'h X-Hue: blue X-Attribution: GM In-Reply-To: <87d25s2ium.fsf@gmx.de> (Michael Albinus's message of "Mon, 02 Feb 2015 20:50:41 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98996 Archived-At: Michael Albinus wrote: >> It seems like a plain bug for bash to do what it does > > Looks to me like this. I don't think the bash folks disagree, but as always the question is what to do about it: http://lists.gnu.org/archive/html/bug-bash/2015-01/msg00138.html >> I wonder: what could Tramp do instead of setting HISTFILE to /dev/null? >> Could unsetting it result in the same behavior (i.e. not save Tramp's >> commands to any file)? > > That's how I understood the doc. Hope somebody will test it. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/fc.html says that If the HISTFILE variable is not set, the shell may attempt to access or create a file .sh_history in the directory referred to by the HOME environment variable. and indeed by experiment with bash 4.2.45, that is exactly what happes with HISTFILE unset and using "bash --posix". So (probably) you can't win.