GNU bug report logs - #41099
28.0.50; TRAMP process-file ignores exit status of remote process

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Tue, 5 May 2020 18:50:02 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 27.2

Done: Philipp Stephani <p.stephani2 <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Noam Postavsky <npostavs <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Philipp Stephani <p.stephani2 <at> gmail.com>, 41099 <at> debbugs.gnu.org
Subject: bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process
Date: Wed, 13 May 2020 21:39:33 -0400
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Philipp Stephani <p.stephani2 <at> gmail.com> writes:
>
>> (defun tramp-process-file (...)
>>   (let ((code (...original code...)))
>>     (if (> code 128)
>>        ;; Probably a signal
>>        (format "Signal %d" (- code 128))
>>     code))
>
> I've pushed a patch to master along these lines.

I don't think this is sufficiently reliable.  With current master:

    (let ((default-directory "/sudo::/home/npostavs/.emacs.d/"))
      (process-file "git" nil nil nil "merge-base"))
    ;=> "Signal 1"

    (let ((default-directory "/home/npostavs/.emacs.d/"))
      (process-file "git" nil nil nil "merge-base"))
    ;=> 129




This bug report was last modified 5 years and 83 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.