From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#26911: 25.2; eshell "cd .." doesn't work correctly with TRAMP Date: Mon, 15 May 2017 17:53:54 +0200 Message-ID: <87lgpy2k19.fsf@detlef> References: <871srs4nrt.fsf@detlef> <42DF8DEE-D1C3-4F65-BB17-ED14128B1D17@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494863720 18539 195.159.176.226 (15 May 2017 15:55:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 May 2017 15:55:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 26911@debbugs.gnu.org To: Yegor Timoshenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 15 17:55:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAIL3-0004c3-UC for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 May 2017 17:55:14 +0200 Original-Received: from localhost ([::1]:37488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAIL7-0002KQ-QF for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 May 2017 11:55:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAIKv-0002Gc-IJ for bug-gnu-emacs@gnu.org; Mon, 15 May 2017 11:55:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAIKs-00042a-Ga for bug-gnu-emacs@gnu.org; Mon, 15 May 2017 11:55:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44072) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAIKs-00041e-Dm for bug-gnu-emacs@gnu.org; Mon, 15 May 2017 11:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dAIKr-0001D3-LP for bug-gnu-emacs@gnu.org; Mon, 15 May 2017 11:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 May 2017 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26911 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26911-submit@debbugs.gnu.org id=B26911.14948636444584 (code B ref 26911); Mon, 15 May 2017 15:55:01 +0000 Original-Received: (at 26911) by debbugs.gnu.org; 15 May 2017 15:54:04 +0000 Original-Received: from localhost ([127.0.0.1]:46749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAIJw-0001Bs-8K for submit@debbugs.gnu.org; Mon, 15 May 2017 11:54:04 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:60215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAIJv-0001BQ-AE for 26911@debbugs.gnu.org; Mon, 15 May 2017 11:54:03 -0400 Original-Received: from detlef.gmx.de ([212.86.63.102]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M70HF-1dxK411ewn-00woXy; Mon, 15 May 2017 17:53:56 +0200 In-Reply-To: <42DF8DEE-D1C3-4F65-BB17-ED14128B1D17@gmail.com> (Yegor Timoshenko's message of "Sat, 13 May 2017 21:30:16 +0300") X-Provags-ID: V03:K0:AJRdHRdApUOCUxZWM7fqdjPNFpidvDqYCluL94ko+A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ugs.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" Xref: news.gmane.org gmane.emacs.bugs:132522 Archived-At: Yegor Timoshenko writes: Looks to me like a bug in Fexpand_file_name, which does not handle file name handlers properly. Try --8<---------------cut here---------------start------------->8--- (let ((default-directory "/ssh::/bin")) (expand-file-name ".." "./")) --8<---------------cut here---------------end--------------->8--- In fileio.c, lines 1393-1394, the following loop --8<---------------cut here---------------start------------->8--- while (o != target && (--o, !IS_DIRECTORY_SEP (*o))) continue; --8<---------------cut here---------------end--------------->8--- replaces "/ssh:host:/bin/.." by "/ssh:host:". But it should be "/ssh:host:/". I'm not such familiar with that code to fix it. Best regards, Michael.