Philipp Stephani writes: Hi Philipp, > $ mkdir -p /tmp/tramptest && emacs -Q -batch -l tramp-sshfs -l tramp -eval '(let ((default-directory "/sshfs:localhost:/tmp/tramptest/")) > (write-region "hello" nil "input") > (with-temp-buffer > (print (list (process-file "cat" "input" t) > (buffer-string)))))' > > (1 "") > > I think the problem is that tramp-sshfs-handle-process-file doesn't pass > the correct input file to tramp-call-process; it should first expand the > input file against the remote default directory and then copy it locally > to pass it to the SSH process. Could you pls try the appended patch? Best regards, Michael.