unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: 53854@debbugs.gnu.org
Cc: p.stephani2@gmail.com
Subject: bug#53854: 28.0.91; Tramp SSHFS: process-file output to current buffer doesn't work right
Date: Mon, 14 Feb 2022 07:58:14 +0100	[thread overview]
Message-ID: <87czjqx7cp.fsf@gmx.de> (raw)
In-Reply-To: <87o83ay242.fsf@gmx.de> (Michael Albinus's message of "Sun, 13 Feb 2022 20:53:49 +0100")

Michael Albinus <michael.albinus@gmx.de> 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.





  reply	other threads:[~2022-02-14  6:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-07 16:45 bug#53854: 28.0.91; Tramp SSHFS: process-file output to current buffer doesn't work right Philipp Stephani
2022-02-13 19:53 ` Michael Albinus
2022-02-14  6:58   ` Michael Albinus [this message]
2022-02-14 11:22     ` Philipp Stephani
2022-02-14  9:22   ` Philipp Stephani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czjqx7cp.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=53854@debbugs.gnu.org \
    --cc=p.stephani2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).