From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs 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 Message-ID: <87mtj1tnq7.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12847"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 53846-done@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 08 17:03:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHSxO-0002zr-WD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 17:03:07 +0100 Original-Received: from localhost ([::1]:36812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHSxN-0003gJ-LI for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 11:03:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHRra-0005bZ-CN for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2022 09:53:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHRra-0003Ql-2P for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2022 09:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHRrZ-0005VF-Vr for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2022 09:53:01 -0500 Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Feb 2022 14:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 53846 X-GNU-PR-Package: emacs Mail-Followup-To: 53846@debbugs.gnu.org, michael.albinus@gmx.de, p.stephani2@gmail.com Original-Received: via spool by 53846-done@debbugs.gnu.org id=D53846.164433194621100 (code D ref 53846); Tue, 08 Feb 2022 14:53:01 +0000 Original-Received: (at 53846-done) by debbugs.gnu.org; 8 Feb 2022 14:52:26 +0000 Original-Received: from localhost ([127.0.0.1]:46009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHRr0-0005UG-0z for submit@debbugs.gnu.org; Tue, 08 Feb 2022 09:52:26 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:32909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHRqy-0005U2-3Z for 53846-done@debbugs.gnu.org; Tue, 08 Feb 2022 09:52:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644331937; bh=ANV11scFmQfGgvfsrPJioxm2+X6tgv6N0EPRqN5KxmI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=JXiiQzb3fR7m4C/o7WoE8S7Tx3iFW1H0Z/wFuxEOldB+vHCb5Hdocjr9nI384gBPr k3STTU97sx9p2FKFbNUfOrz4CsQFBjhyFGlDZcfZ4nEg+xgXx/7c4xxVIxBmx3jR4V 2HXaIIKFRnFCPmGct1JxEtzGGkLmhL3hn7SQ79yc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.242.49]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MjS9I-1o0zwB1ZwQ-00kwMr; Tue, 08 Feb 2022 15:52:17 +0100 In-Reply-To: (Philipp Stephani's message of "Mon, 07 Feb 2022 15:23:22 +0100") X-Provags-ID: V03:K1:3gNSzrIwKmZ2U6wrBVGP7EAZToePEDtBqFURTkcQTOB7zMJHyDM X+W9Amc1GvHWQrDhxSjxmZYdLopSvQqFDUiCvSRdaB+WTmJkvtDDtp1GM+e3iNifJRy+hwr S09A2YIzAqvlWuBJoql60wGBENKCe/5s53oQw4KzJ+N0r5Qrk/ATbRZniK7zOGQhQDn07Vm 9PI/IlRBIjSSkBVk6qCAw== X-UI-Out-Filterresults: notjunk:1;V03:K0:l84WgzLjmBA=:dBSod/F1KoYHlhzsjEsfss W42qhw1mNAxNX0OT6czFlQOAgw94ZuMcH2+UZ29h7UyB996Dtl7VKlfvckDn3Et7rT/6mF0oJ AYYGLHRwO03UXnV8wDqDcPO6jWDYaxEijbyyTvZPQILLPE+xVnjChoKDM0+Zt8oyFeA21JZXC N9u1ImwpOR3MeczjgGPJ246FhP1VjfzoOhMkuy3OSWrb2ccdqjnm+CcUdO2mzH/8jR2Xv35TB PaS8g+9Gs7fRCau1CXiY7G8O4xNGxSX4KyFMeNbWbISzxPBzHpVaL4anS+bcogRJYdj0KdZwF XBvLSRzF4TmGkCeeCKaivck+Mprsafd8xkwpRDqbGdmID+gqA4tToxBg7CyF/3eQQg484CMAl +8OAWqEWgQB8X3F98xN93ALd5cXbiHFWS0e+gZj7VgsVmd0Kouf/JFJkfDMyJAhuRyV3m88Sx mqtAOhwkjP+1K16ZzpNXgoX0cxXgclTLCgeDuxxXKrt7ejQDNmeREgrjpXTFt3OgC4tQm00TU Sub97ilwt8o/EQzjOvdQFKTccMsex8pWB+r/k5xcxbpnr+WDbU+BhB5+Bv6Xddgkx0jvOwvJ3 7xn2n2qWE4k6xnM6Vzyp20iJUM3ySyyy1T/YFZpe5u9McGivVtGqK0f2/E9zDiD21KQeaHgHg GUPe4ptrX0WzGtcsrPGFKTbe6EUjhCOTLm1xxRBJeqX1pYxtWxdlajogYMCXFr4JslWAxm9nB sRp6xXxU2U0uFGn3VwDpjJ19xchklOnQOr5SCfMb5wG/vY5dNFrG2Fv/oNqH1OquyO1dSGTl X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226384 Archived-At: Version: 28.2 Philipp Stephani 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.