Package: emacs24-common
Version: 24.4+1-5
Severity: important
File: /usr/share/emacs/24.4/lisp/net/tramp-sh.elc
Tags: upstream fixed-upstream patch
Forwarded: -1 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19731#56
User: luca.cape...@infomaniak.com
Usertags: infomaniak.com-editor

Hi there,

the title says all, and since it causes a lot of processes on the remote
server to fail it should be fixed ASAP (still present on unstable).

I have locally added the following small patch (not yet tested, though):

--8<---------------cut here---------------start------------->8---
--- /usr/share/emacs/24.4/lisp/net/tramp-sh.el.gz
+++ /home/users/luca.capello/.emacs.d/lisp/tramp-sh.el
@@ -3735,7 +3735,8 @@
          (setq extra-args (cdr item))))
       (tramp-send-command
        vec (format
-           "exec env ENV='' HISTFILE=/dev/null PROMPT_COMMAND='' PS1=%s PS2='' 
PS3='' %s %s"
+           ;; <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19731#56>
+           "exec env ENV='' HISTFILE=.tramp_history PROMPT_COMMAND='' PS1=%s 
PS2='' PS3='' %s %s"
            (tramp-shell-quote-argument tramp-end-of-output)
            shell (or extra-args ""))
        t))
@@ -4467,7 +4468,7 @@
                (delete-process p))
              (setenv "TERM" tramp-terminal-type)
              (setenv "LC_ALL" "en_US.utf8")
-             (setenv "HISTFILE" "/dev/null")
+             (setenv "HISTFILE" ".tramp_history")
              (setenv "PROMPT_COMMAND")
              (setenv "PS1" tramp-initial-end-of-output)
              (let* ((target-alist (tramp-compute-multi-hops vec))
--8<---------------cut here---------------end--------------->8---

Thx, bye,
Gismo / Luca

-- 
Luca Capello
Administrateur GNU/Linux

Infomaniak Network SA

-- System Information:
Debian Release: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages emacs24-common depends on:
ii  dpkg            1.17.27
ii  emacsen-common  2.0.8
ii  install-info    5.2.0.dfsg.1-6

emacs24-common recommends no packages.

Versions of packages emacs24-common suggests:
pn  emacs24-common-non-dfsg  <none>
ii  emacs24-el               24.4+1-5

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to