FS#47912 - [emacs] tramp-sh.el deletes /dev/null
Attached to Project:
Arch Linux
Opened by Alad Wenter (Alad) - Wednesday, 27 January 2016, 14:58 GMT
Last edited by Jürgen Hötzel (juergen) - Friday, 29 January 2016, 19:43 GMT
Opened by Alad Wenter (Alad) - Wednesday, 27 January 2016, 14:58 GMT
Last edited by Jürgen Hötzel (juergen) - Friday, 29 January 2016, 19:43 GMT
|
Details
Description:
tramp-sh.el sets HISTFILE=/dev/null, which cause the file to be deleted when /bin/bash is the default /bin/sh (which is the case in Arch). For details, see: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19731 Patch which uses HIST{,FILE}SIZE instead, as done in newer versions of tramp-sh.el: https://ptpb.pw/7gaH Steps to reproduce: M-x /root@localhost:<somefile> Edit until HISTFILESIZE is exceeded, notice /dev/null is replaced by a regular file. |
This task depends upon
Closed by Jürgen Hötzel (juergen)
Friday, 29 January 2016, 19:43 GMT
Reason for closing: Deferred
Additional comments about closing: Will be fixed in the upcoming Emacs 25 release
Friday, 29 January 2016, 19:43 GMT
Reason for closing: Deferred
Additional comments about closing: Will be fixed in the upcoming Emacs 25 release
This seems to be already fixed in recent tramp releases:
https://lists.gnu.org/archive/html/emacs-diffs/2015-02/msg00035.html
It's fixed in emacs 25, but I'd say it's an important enough issue to backport it to the Arch package.
The correct way is to install a recent tramp release using the emacs packages manager.
There are a lot of bugs fixed since the emacs-24.5 release.
I also checked the Fedora-Package. They also don't include this patch.