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

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

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


From: Michael Albinus
Subject: bug#26911: 25.2; eshell "cd .." doesn't work correctly with TRAMP
Date: Mon, 15 May 2017 17:53:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Yegor Timoshenko <yegortimoshenko@gmail.com> 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.





reply via email to

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