From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#23032: 25.0.91; Eshell misinterprets TRAMP multi-hop paths as pipes Date: Fri, 18 Mar 2016 10:07:20 +0100 Message-ID: <87zitwduif.fsf@gmx.de> References: <87bn6es89p.fsf@riseup.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458292107 23343 80.91.229.3 (18 Mar 2016 09:08:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2016 09:08:27 +0000 (UTC) Cc: 23032@debbugs.gnu.org To: William G. Gardella Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 18 10:08:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1agqOE-0005JE-5h for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Mar 2016 10:08:14 +0100 Original-Received: from localhost ([::1]:42338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agqOD-0007GI-EU for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Mar 2016 05:08:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agqO8-0007Dj-Jp for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 05:08:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agqO2-0002iW-Ln for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 05:08:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agqO2-0002iS-IU for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 05:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1agqO2-0001DH-Bt for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 05:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Mar 2016 09:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23032 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23032-submit@debbugs.gnu.org id=B23032.14582920554625 (code B ref 23032); Fri, 18 Mar 2016 09:08:02 +0000 Original-Received: (at 23032) by debbugs.gnu.org; 18 Mar 2016 09:07:35 +0000 Original-Received: from localhost ([127.0.0.1]:51743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agqNb-0001CX-0W for submit@debbugs.gnu.org; Fri, 18 Mar 2016 05:07:35 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:52132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agqNY-0001CJ-Kg for 23032@debbugs.gnu.org; Fri, 18 Mar 2016 05:07:33 -0400 Original-Received: from detlef.gmx.de ([87.146.50.242]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MTjMy-1aGPXf0sy0-00QWNn; Fri, 18 Mar 2016 10:07:23 +0100 In-Reply-To: <87bn6es89p.fsf@riseup.net> (William G. Gardella's message of "Wed, 16 Mar 2016 16:21:54 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:FNplJs+ptPvTfqiXJklhCeED01fQjEQJPx05ImC5mK2VByqx4W/ L5gDEpPU9KjxSWPpaThL6iDxTjwkIyhmlN+U3EUsBd6tro+wmxghFoUkS6gJiPX6sot+7+y RF2Odk4Mcsm6hY1KO8kkMAcivfwSO3QcWGVlee1QVCgl7joGPAS4LsXV+9ZAazuUpCfNvti 5KoAoBKr+QIX/BYGP4uWw== X-UI-Out-Filterresults: notjunk:1;V01:K0:mn3Hm6OhnGE=:wrUSzlje2Onp8ch5+Bf5mS k5qnlKOJyiA9d4/PFn5jPiO1xbJDMWuFOUfaEbl6WaAi4y/4Ccz8M9/m61fbfJNHTNWPv2G/P 5r1qFL/pMYYTCDMeUXjCt3Zg8JppMvHMbQyv11Gcwpk3zFQc9uCjO9mAiB8AlHsxj7d4DhMWj bQISoma+rShCsRWUF9nT/Sm68lBMBLx3C0Ic+mZz57I5oy3g2A8ciL9OrRncedlJJ0VxDTPwr 4jZGyreoZalzuRnPJdcziEFbAEiyUGDZQjasga+mbup9haHiD+L1P/QtcHqPndVFuI0yy581R kOPYundy9aA0TrEN25GmpyfRkjCTbmDFu7KcpdsrMbe6Fzv58dko4KNJvvXIwM1GVBU3KLEgK 2ysWYJV1166VD98B7GuOTQUVtl9wfr2dhkKcaWyZgnHqW+Zf1Fq3YawV3n4dwKNa2uWd2w2xk zoyT+eZVOHwscVOfKTt2N7GjnYYOqim1YGnYSitsS4p0kJZJjz58zRvH5Vhy3PCJcjBb2sBb6 HZbRRBUjqFMWz5w75NAsAP+4uSofWIm0sAKG4MfUQeMnWWL3tEzPKl6HXOSHlqfLb8oJV3ODV HpTvk/ZkWLygbeHf+GxiTJwJmvlnJtD2XPohzpUzXFmLmicbGQhBJ7K8HVjrNWywt+kk6jxOm dFkBKMkzZBg6IVA9weKdHSo1kSyApUOR+DIGHwAiygL9VI+lHnyVvJ3WpPK74VpPnPBUWAm28 uGQKAJcejyHgwPPG3Vz+57R2IdAbzDbO3YrcIzi1DXuVrZ84b72BCS4OEVFlI0q+6js2MMPK X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115025 Archived-At: William G. Gardella writes: Hi William, > Steps to reproduce: > > 1. M-x eshell > > 2. Type a TRAMP path that makes an ad-hoc multi-hop connection, > such as: > > cd /sshx:user@host|sudo:root@host: > > 3. Eshell responds "sudo:root@host:: command not found" > > 4. Type the same TRAMP path, but wrapped in quotes: > > cd "/sshx:user@host|sudo:root@host:" > > 5. Eshell successfully navigates to the path. > > It seems that eshell too eagerly notices the pipe character > and assumes that it's reading a piped command line, > rather than first noticing that the character is inside a TRAMP path. I don't know whether we can/shall do something about. After all, eshell is a shell-like command interpreter, and the pipe symbol is a special one. Like in other shells, special symbols must be escaped. Both "/sshx:user@host|sudo:root@host:" and /sshx:user@host\|sudo:root@host: work in eshell. Other special symbols, like a space in a filename, would require similar quoting. We shall extend the eshell manual pointing about this. Hmm, looks like the manual even speaks about pipes ... Best regards, Michael.