GNU bug report logs - #33255
27.0.50; expand-file-name: default directory expanded twice if relative

Previous Next

Package: emacs;

Reported by: immerrr again <immerrr <at> gmail.com>

Date: Sun, 4 Nov 2018 10:56:02 UTC

Severity: minor

Fixed in version 27.0.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


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

From: Glenn Morris <rgm <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 33255 <at> debbugs.gnu.org, immerrr again <immerrr <at> gmail.com>,
 Noam Postavsky <npostavs <at> gmail.com>
Subject: Re: 27.0.50;
 expand-file-name: default directory expanded twice if relative
Date: Thu, 22 Nov 2018 13:25:20 -0500
Paul Eggert wrote:

> It needs to be read in context. Section 2.6.1 is about tilde expansion
> in the shell, e.g., how to treat commands like this:
>
> cd ~eggert/xxx
> cd ~/yyy
>
> 2.6.1 says "If the login name is null (that is, the tilde-prefix
> contains only the tilde), the tilde-prefix is replaced by the value of
> the variable /HOME."/ This is talking about the second "echo" example
> which uses a null login name, and it means that the second example is
> treated like this:
>
> cd "$HOME"/yyy/

This seems to be telling me what tilde expansion is.

I am at this point looking for any documentation (not even from POSIX,
any shell or frankly any Unix utility will do) that says "HOME need not
be absolute, if not, here's how that is handled". So far all I see from
POSIX is that it doesn't say anything about whether HOME is absolute or
not.





This bug report was last modified 6 years and 261 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.