Subject: Re: bug#26911: 25.2; eshell "cd .." doesn't work correctly with TRAMP

From: Michael Albinus <[email-masked]>
Date: Mon, 15 May 2017 17:53:54 +0200

Yegor Timoshenko <[email-masked]> 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.