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:41:09 +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 1422610937 3583 80.91.229.3 (30 Jan 2015 09:42:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 09:42: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:42:13 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 1YH85c-0004Ml-1i for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Jan 2015 10:42:12 +0100 Original-Received: from localhost ([::1]:35733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH85b-0004qv-42 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Jan 2015 04:42:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH85W-0004n4-7X for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2015 04:42:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YH85T-0004dG-1C for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2015 04:42:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH85S-0004ct-MB for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2015 04:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YH85S-0003yC-Bg for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2015 04:42: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:42: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.142261087915197 (code B ref 19731); Fri, 30 Jan 2015 09:42:02 +0000 Original-Received: (at 19731) by debbugs.gnu.org; 30 Jan 2015 09:41:19 +0000 Original-Received: from localhost ([127.0.0.1]:57759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YH84k-0003x3-68 for submit@debbugs.gnu.org; Fri, 30 Jan 2015 04:41:18 -0500 Original-Received: from mail-pa0-f44.google.com ([209.85.220.44]:40137) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YH84h-0003wn-68 for 19731@debbugs.gnu.org; Fri, 30 Jan 2015 04:41:16 -0500 Original-Received: by mail-pa0-f44.google.com with SMTP id rd3so50391127pab.3 for <19731@debbugs.gnu.org>; Fri, 30 Jan 2015 01:41:09 -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=5H6TSiLUZPJ6LxA8+601jb8NSUCdKvicbJx/kvwpdFs=; b=R6+LaAzQCGblN1wOoPKy5c1SodZ5kmcKmhCMjxMaQRSV03OnvVmqucVX1Ump6ml2Bk 0lwJH4T4rV/GlbTxiW2BFeAboR2RkBCDvdiniyj0MwOdwEt606/BWwSOheKRcF5QiZXW MiHD3hFwadDZHrdCpn4r/4/O9TC5n0JvagDy6m+M1bnKMgpSZ2tdNcYEVPO0rkR0BnPw TgD1nn74+S+KpCqNXTu0wds/1xiwBFcwe0hsf55cWf/PypkvN2vtSz3jGt/Heciia9Bi fdx7WQMSHRZDIEYBAi9gHHMwu1j4S+6TtWRQIRbLw3DPVeimuU5/TFUQlfcSAcCIshAD yYIA== X-Received: by 10.66.100.202 with SMTP id fa10mr7748840pab.36.1422610869421; Fri, 30 Jan 2015 01:41:09 -0800 (PST) Original-Received: by 10.67.6.195 with HTTP; Fri, 30 Jan 2015 01:41:09 -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:98897 Archived-At: I think there are at least two solutions to tramp-sh.el problem. 1) Change the shell to zsh 2) unset $HISTFILE and set HISTFILESIZE to 0 instead of setting HISTFILE to /dev/null 3) etc... 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)) > > >