GNU bug report logs - #57371
28.1; eshell cannot handle ~ notation in PATH variable

Previous Next

Package: emacs;

Reported by: Colton Lewis <coltonlewis <at> google.com>

Date: Tue, 23 Aug 2022 21:09:02 UTC

Severity: normal

Found in version 28.1

Done: Jakub Ječmínek <jecminek.k <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Jakub Ječmínek <jecminek.k <at> gmail.com>
To: 57371 <at> debbugs.gnu.org
Subject: Re: bug#57371: 28.1; eshell cannot handle ~ notation in PATH variable
Date: Tue, 16 Jan 2024 22:16:01 +0100
[Message part 1 (text/plain, inline)]
Hi Colton, what you're describing is not the bug in eshell but rather a
bash feature; no other shell will perform expansion on literal tilde in
PATH (you can disable it in Bash using POSIXLY_CORRECT environment
variable).  If you drop the quotes then it's going to work as expected
because the shell will expand the tilde to HOME before storing it in PATH:

PATH=~/test-bin:$PATH emacs -Q

Best,
Jakub Ječmínek
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 129 days ago.

Previous Next


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