GNU bug report logs -
#16861
24.3; Eshell /.. eshell/pwd Bug
Previous Next
Full log
View this message in rfc822 format
"R. Michael Weylandt <michael.weylandt <at> gmail.com>"
<michael.weylandt <at> gmail.com> writes:
> On Feb 24, 2014, at 4:30, Andreas Schwab <schwab <at> suse.de> wrote:
>
>> "R. Michael Weylandt" <michael.weylandt <at> gmail.com> 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
This bug report was last modified 3 years and 107 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.