Subject: Re: bug#53854: 28.0.91; Tramp SSHFS: process-file output to current buffer doesn't work right

From: Michael Albinus <[email-masked]>
Date: Mon, 14 Feb 2022 07:58:14 +0100

Michael Albinus <[email-masked]> writes:

Hi Philipp,

>> But with SSHFS, it doesn't work:
>>
>> $ emacs -Q -batch -eval '(let ((default-directory "/sshfs:localhost:/")) (with-temp-buffer (process-file "hello" nil (list t "/tmp/stderr")) (princ (buffer-string))))'
>>
>> The output buffer stays empty.
>> The same behavior can be observed on the master branch.
>
> I've fixed this, pushed to the master branch. Will also be available
> with next Tramp 2.5.2.2 in GNU ELPA.

PS: The command as given by you in the example will write stderr to the
file "/tmp/stderr", and not to "/sshfs:localhost:/tmp/stderr" as you
might expect. No difference in the given example, but you might be
surprised if you use another target but "localhost".

Best regards, Michael.