From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: 16861@debbugs.gnu.org
Subject: bug#16861: 24.3; Eshell /.. eshell/pwd Bug
Date: Mon, 03 Mar 2014 07:57:13 +0100 [thread overview]
Message-ID: <87y50r93cm.fsf@gmail.com> (raw)
In-Reply-To: <CAAmySGPCyJW4i=KDT3efGMtPj2Ah4daQ+dSrLiv2DxPuUhirJg@mail.gmail.com>
"R. Michael Weylandt <michael.weylandt@gmail.com>"
<michael.weylandt@gmail.com> writes:
> On Feb 24, 2014, at 4:30, Andreas Schwab <schwab@suse.de> wrote:
>
>> "R. Michael Weylandt" <michael.weylandt@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
next prev parent reply other threads:[~2014-03-03 6:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-24 3:30 bug#16861: 24.3; Eshell /.. eshell/pwd Bug R. Michael Weylandt
2014-02-24 9:30 ` Andreas Schwab
2014-02-24 10:13 ` Thierry Volpiatto
2014-02-24 10:23 ` Andreas Schwab
2014-02-24 10:29 ` Thierry Volpiatto
2014-02-24 10:34 ` Andreas Schwab
2014-02-24 11:13 ` Thierry Volpiatto
2014-02-24 15:39 ` R. Michael Weylandt <michael.weylandt@gmail.com>
2014-03-03 6:57 ` Thierry Volpiatto [this message]
2022-02-05 22:57 ` Lars Ingebrigtsen
2022-02-06 16:30 ` Michael Weylandt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y50r93cm.fsf@gmail.com \
--to=thierry.volpiatto@gmail.com \
--cc=16861@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).