From: crocket <crockabiscuit@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>, 19731@debbugs.gnu.org
Subject: bug#19731: 24.4; /dev/null is deleted by tramp-sh.el
Date: Mon, 2 Feb 2015 21:22:30 +0900 [thread overview]
Message-ID: <CAL0=0H1b7P1dnxV4=sFmwMfu23nbaGg6DoVXgJGgh6n95k-WAA@mail.gmail.com> (raw)
In-Reply-To: <87mw4wjyqi.fsf@gmx.de>
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 <michael.albinus@gmx.de> wrote:
> crocket <crockabiscuit@gmail.com> 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.
next prev parent reply other threads:[~2015-02-02 12:22 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-30 5:18 bug#19731: 24.4; /dev/null is deleted by tramp-sh.el crocket
2015-01-30 9:38 ` crocket
2015-01-30 9:41 ` crocket
2015-02-02 11:44 ` Michael Albinus
[not found] ` <CAL0=0H0i02hc96VRz4HFnS9ztr2-1SxaykZiJ6mqPQxm5h2aag@mail.gmail.com>
[not found] ` <87mw4wjyqi.fsf@gmx.de>
2015-02-02 12:22 ` crocket [this message]
2015-02-02 12:45 ` Michael Albinus
2015-02-02 12:46 ` crocket
2015-02-02 13:04 ` Michael Albinus
2015-02-02 14:18 ` crocket
2015-02-02 15:25 ` Michael Albinus
2015-02-02 18:44 ` Stefan Monnier
2015-02-02 19:50 ` Michael Albinus
2015-02-02 20:08 ` Glenn Morris
2015-02-03 3:06 ` crocket
2015-02-03 8:34 ` Michael Albinus
2015-02-03 9:10 ` Andreas Schwab
2015-02-03 9:23 ` Michael Albinus
2015-02-03 16:54 ` Glenn Morris
2015-02-06 11:01 ` Alad Wenter
2015-02-08 10:05 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAL0=0H1b7P1dnxV4=sFmwMfu23nbaGg6DoVXgJGgh6n95k-WAA@mail.gmail.com' \
--to=crockabiscuit@gmail.com \
--cc=19731@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).