[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19731: 24.4; /dev/null is deleted by tramp-sh.el
From: |
crocket |
Subject: |
bug#19731: 24.4; /dev/null is deleted by tramp-sh.el |
Date: |
Mon, 2 Feb 2015 21:22:30 +0900 |
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.
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el, Michael Albinus, 2015/02/02
- Message not available
- Message not available
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el,
crocket <=
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el, Michael Albinus, 2015/02/02
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el, crocket, 2015/02/02
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el, Michael Albinus, 2015/02/02
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el, crocket, 2015/02/02
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el, Michael Albinus, 2015/02/02
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el, Stefan Monnier, 2015/02/02
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el, Michael Albinus, 2015/02/02
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el, Glenn Morris, 2015/02/02
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el, crocket, 2015/02/02
- bug#19731: 24.4; /dev/null is deleted by tramp-sh.el, Michael Albinus, 2015/02/03