GNU bug report logs - #16861
24.3; Eshell /.. eshell/pwd Bug

Previous Next

Package: emacs;

Reported by: "R. Michael Weylandt" <michael.weylandt <at> gmail.com>

Date: Mon, 24 Feb 2014 03:40:02 UTC

Severity: minor

Found in version 24.3

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #29 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#16861: 24.3; Eshell /.. eshell/pwd Bug
Date: Mon, 03 Mar 2014 07:57:13 +0100
"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.