Subject: Re: bug#16861: 24.3; Eshell /.. eshell/pwd Bug

From: Thierry Volpiatto <[email-masked]>
Date: Mon, 03 Mar 2014 07:57:13 +0100

"R. Michael Weylandt <[email-masked]>"
<[email-masked]> writes:

> On Feb 24, 2014, at 4:30, Andreas Schwab <[email-masked]> wrote:
>
>> "R. Michael Weylandt" <[email-masked]> writes:
>> 
>>> Enter eshell, change to / and then cd to ".." and eshell/pwd reports
>>> "/.." instead of the canonical "/":
>> 
>> (expand-file-name ".." "/") -> "/.."
>> 
>> See its doc string.
>
> Ok -- I hadn't run across file systems with a 'superroot' before (cf. Emacs Manual 25.8.4). I'll special case it in my Eshell prompt function then. 

If one is interested to fix this bug, a fix for this could be something
like:

--8<---------------cut here---------------start------------->8---
(setq eshell-pwd-convert-function (lambda (f)
                                    (if (file-equal-p (file-truename f) "/")
                                        "/" f)))
--8<---------------cut here---------------end--------------->8---

instead of 'identity as default value.

-- 
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997