From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: crocket Newsgroups: gmane.emacs.bugs Subject: bug#19731: 24.4; /dev/null is deleted by tramp-sh.el Date: Mon, 2 Feb 2015 21:22:30 +0900 Message-ID: References: <87r3u8k065.fsf@gmx.de> <87mw4wjyqi.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1422879798 29221 80.91.229.3 (2 Feb 2015 12:23:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 12:23:18 +0000 (UTC) To: Michael Albinus , 19731@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 02 13:23:17 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 1YIG28-0002bI-Pq for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2015 13:23:17 +0100 Original-Received: from localhost ([::1]:54207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIG27-0002Pv-PW for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2015 07:23:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIG22-0002ME-7M for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 07:23:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIG1y-00018r-7j for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 07:23:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIG1u-00018a-V0 for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 07:23:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YIG1u-0003E3-Gy for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 07:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: crocket Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Feb 2015 12:23: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.142287975812361 (code B ref 19731); Mon, 02 Feb 2015 12:23:02 +0000 Original-Received: (at 19731) by debbugs.gnu.org; 2 Feb 2015 12:22:38 +0000 Original-Received: from localhost ([127.0.0.1]:60053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIG1W-0003DI-9d for submit@debbugs.gnu.org; Mon, 02 Feb 2015 07:22:38 -0500 Original-Received: from mail-pa0-f51.google.com ([209.85.220.51]:47595) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIG1U-0003D3-Rf for 19731@debbugs.gnu.org; Mon, 02 Feb 2015 07:22:37 -0500 Original-Received: by mail-pa0-f51.google.com with SMTP id fb1so81974030pad.10 for <19731@debbugs.gnu.org>; Mon, 02 Feb 2015 04:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=N/cqcII6xY9D7nR6nusAqq0JQca4yUg0EA3IMD9iO2c=; b=W7qJZKn4YSBhB6VcyJo9TaqSy7L6fXjGsfBJOmsUMMOAWH2ldA736B9KM/+nWlmLok UYxzqmKPiqHKLYY9R1Q9I8IkDH+q4hLEH24M7P64O+08qIe/W4vBsdp/bUv6xHCzNIww n3JBzh+3N7Wq915OxmEkFTIi2B9vFVqFvQVAWK02skHVgGo6I2oFg+21QLXtWTrDEJjH ZBxl8l2bxqy6OP4+/ZFWNQMhDD1Bg+K+qUumWXfKCAE7PVqw4DhqnKqfW/OMZJL0ZzDE HqITxwMi10aNmFvFJ3vHQnttVPJA5CxjZFihvSupplEz/7gKRuq6JbsTqnB3v4OjQpIT 3RQg== X-Received: by 10.68.227.6 with SMTP id rw6mr28958414pbc.2.1422879750895; Mon, 02 Feb 2015 04:22:30 -0800 (PST) Original-Received: by 10.67.6.195 with HTTP; Mon, 2 Feb 2015 04:22:30 -0800 (PST) In-Reply-To: <87mw4wjyqi.fsf@gmx.de> 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:98972 Archived-At: On bash, if you become root, and set HISTFILE to /dev/null and HISTFILESIZE to a very small number, and execute more than $HISTFILESIZE commands, and exit bash, then you'll see /dev/null replaced with a regular file with permission 600. If you can't reproduce it, then I'll test tramp on emacs 25 with 'tramp-histfile-override' set to 'unset'. On Mon, Feb 2, 2015 at 9:15 PM, Michael Albinus wrote: > crocket writes: > >> I confirmed that bash deletes /bin/bash with HISTFILE=/dev/null after >> executing more commands than HISTFILESIZE. >> Thus, I can already imagine the outcome of unsetting HISTFILE. >> You can test emacs 25 with various values of HISTFILE on systems that >> have /bin/sh symlinked to /bin/bash. > > Well, I couldn't test whether Tramp behaves correctly because I have no > test system where bash behaves like described by you. So I hope to get > feedback, whether Tramp behaves correctly. > >> I think 'unset' is a reasonable default value for HISTFILE because >> people are not interested in tramp history by default. > > Well, changing the default would need much more testing with other > shells but bash. That's why it is offered as option only, and not as default. > > Best regards, Michael.