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


Message #14 received at 41099 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 41099 <at> debbugs.gnu.org
Subject: Re: bug#41099: 28.0.50; TRAMP process-file ignores exit status of
 remote process
Date: Wed, 06 May 2020 10:38:39 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi Philipp,

>> It looks like `tramp-send-command-and-check' should not just search
>> for the exit code, but also return it.
>
> No, most use cases a simple nil or t is appropriate. Otherwise, you would
> need to check always (zerop (tramp-send-command-and-check ...)). But in
> tramp-sh-handle-process-file, it shall return the exit code (indicated
> by an optional argument).
>
> Same for tramp-adb-send-command-and-check, called in tramp-adb-handle-process-file.

I've fixed this in master, could you pls check?

Best regards, Michael.




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.