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: Fri, 30 Jan 2015 18:38:29 +0900 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1422610757 405 80.91.229.3 (30 Jan 2015 09:39:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 09:39:17 +0000 (UTC) To: 19731@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 30 10:39:16 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 1YH82l-0001n0-7F for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Jan 2015 10:39:15 +0100 Original-Received: from localhost ([::1]:35711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH82k-0001bb-LD for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Jan 2015 04:39:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH82c-0001Tx-TC for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2015 04:39:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YH82Z-0003lJ-GN for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2015 04:39:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH82Z-0003lF-Cc for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2015 04:39:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YH82Y-0003sx-Hi for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2015 04:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: crocket Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Jan 2015 09:39: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.142261072214897 (code B ref 19731); Fri, 30 Jan 2015 09:39:02 +0000 Original-Received: (at 19731) by debbugs.gnu.org; 30 Jan 2015 09:38:42 +0000 Original-Received: from localhost ([127.0.0.1]:57755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YH82D-0003sC-45 for submit@debbugs.gnu.org; Fri, 30 Jan 2015 04:38:41 -0500 Original-Received: from mail-pa0-f51.google.com ([209.85.220.51]:34702) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YH827-0003rw-Od for 19731@debbugs.gnu.org; Fri, 30 Jan 2015 04:38:36 -0500 Original-Received: by mail-pa0-f51.google.com with SMTP id fb1so50515436pad.10 for <19731@debbugs.gnu.org>; Fri, 30 Jan 2015 01:38:29 -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=BY9X9ERuTE22s0M3cCRCQuY7rXvqDB+fU7Lh6AQCoFc=; b=hC1t9gBKyDOofNHxRWBcC9LXOaFDepFOUCtIjgT/hWMz1VX0IYNiIxDbB3NqvPbqu+ qh4Ort35ONjdzLdJKUOm2oXZ1B0q0p3MZuJUmeIfbc0nzOLxjMsjbWs2lCz4+8C/gPXB B52ahU+D9zoHqZYDTShbsZI/HC0B7H+m3qkCXitk3srnVrYYQRDSW3t2Q2Kdaq2dMgaM 0UnsqVZthAj5RQCOB052wt21EBDNUaflxsTB4ICwauNNymINkbDtdyk2tQl/EUm6sFKK SxbzwSgy3fpFxT8uDcsm37fiWUKkj3jpdZqTZ9B8fUnBfrQXhS8kVkDdFpnrDCPkNNZL CYZw== X-Received: by 10.66.62.137 with SMTP id y9mr7452647par.87.1422610709653; Fri, 30 Jan 2015 01:38:29 -0800 (PST) Original-Received: by 10.67.6.195 with HTTP; Fri, 30 Jan 2015 01:38:29 -0800 (PST) In-Reply-To: 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:98896 Archived-At: I confirmed that if $HISTFILE is /dev/null on bash and I execute more commands than $HISTFILESIZE, when I exit bash, /dev/null is deleted. Thus, if tramp executes more commands than $HISTFILESIZE and I quit emacs, /dev/null is deleted. On Fri, Jan 30, 2015 at 2:18 PM, crocket wrote: > According to https://bbs.archlinux.org/viewtopic.php?pid=1397412#p1397412 > , if HISTFILE=/dev/null is set as an environment variable, /dev/null > can be deleted and replaced by a regular file with permission 600. > > If I fiddled with magit over tramp sudo method for a while and exited > emacs, I see /dev/null replaced with a regular file with permission > 600. > > After some inspections, I found HISTFILE=/dev/null in tramp-sh.el. > > Could tramp-sh.el be the cause of /dev/null problem? > > In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.7) > of 2015-01-18 on bisson > Windowing system distributor `The X.Org Foundation', version 11.0.11603000 > Configured using: > `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib > --localstatedir=/var --with-x-toolkit=gtk3 --with-xft > 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong > --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 > LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' > > Important settings: > value of $LANG: en_US.utf8 > value of $XMODIFIERS: @im=ibus > locale-coding-system: utf-8-unix > > Major mode: Fundamental > > Minor modes in effect: > tooltip-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 > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > buffer-read-only: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > C-x C-f C-g M-x r e p o r t > > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > Quit > > Load-path shadows: > None found. > > Features: > (shadow sort gnus-util mail-extr emacsbug message idna format-spec > rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 > mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums > mm-util help-fns mail-prsvr mail-utils info easymenu package epg-config > time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type > mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe > tabulated-list newcomment lisp-mode prog-mode register page menu-bar > rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax > facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese > tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak > czech european ethiopic indian cyrillic chinese case-table epa-hook > jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting > system-font-setting font-render-setting move-toolbar gtk x-toolkit x > multi-tty emacs) > > Memory information: > ((conses 16 113852 6530) > (symbols 48 20679 0) > (miscs 40 87 124) > (strings 32 22379 4312) > (string-bytes 1 542144) > (vectors 16 12069) > (vector-slots 8 418986 5747) > (floats 8 66 65) > (intervals 56 224 19) > (buffers 960 12) > (heap 1024 50731 994)) > > >