bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#53846: 28.0.91; Tramp SSHFS doesn't quote default-directory for asyn


From: Michael Albinus
Subject: bug#53846: 28.0.91; Tramp SSHFS doesn't quote default-directory for asynchronous remote processes
Date: Tue, 08 Feb 2022 15:52:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Version: 28.2

Philipp Stephani <p.stephani2@gmail.com> writes:

Hi Philipp,

> Create a directory containg a space character, e.g. '/tmp/a b'.  Then,
> start Emacs with 'emacs -Q'.  Visit the directory over SSHFS using
> 'C-x d /sshfs:localhost:/tmp/a b'.  This works as expected.  Then, try
> starting a shell in the directory with 'M-x shell'.  This fails and the
> shell buffer contains
>
> bash: line 1: cd: too many arguments
>
> This indicates that Tramp doesn't correctly quote the local part of the
> current directory when constructing the 'cd' command.
> SSH'ing to 'localhost' here is only for simplicity, the same happens
> with an actual remote host.
> The issue is also present on master.

I've fixed this in the master branch, commit fe37e49a97. Added also a
test for this use case.

This fix will also appear with the next GNU ELPA Tramp package, 2.5.2.2.

Closing the bug.

Thanks for the report, and best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]