From: "Jakub Ječmínek" <jecminek.k@gmail.com>
To: 57371-done@debbugs.gnu.org
Subject: bug#57371: 28.1; eshell cannot handle ~ notation in PATH variable
Date: Wed, 17 Jan 2024 23:02:52 +0100 [thread overview]
Message-ID: <m2sf2vzkhf.fsf@gmail.com> (raw)
In-Reply-To: <CAFBiodKMqR-QTPWtG1VO=gzv3uawbaENXvyJvEcnNbh-2mE5hQ@mail.gmail.com> ("Jakub Ječmínek"'s message of "Tue, 16 Jan 2024 22:16:01 +0100")
tags 57371 notabug
thanks
Colton Lewis writes:
> Discovered while investigating the other bug I sent.
>
> 1. Create an executable ~/test-bin/test.sh
> 2. PATH="~/test-bin:$PATH" emacs -Q
> 3. Start eshell
> 4. test.sh
> 5. Observe no such file or directory error
>
> This can be worked around using PATH="$HOME/test-bin:$PATH" or using
> shell rather than eshell.
Jakub Ječmínek writes:
>> 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
prev parent reply other threads:[~2024-01-17 22:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-23 20:42 bug#57371: 28.1; eshell cannot handle ~ notation in PATH variable Colton Lewis via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-16 21:16 ` Jakub Ječmínek
2024-01-17 22:02 ` Jakub Ječmínek [this message]
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=m2sf2vzkhf.fsf@gmail.com \
--to=jecminek.k@gmail.com \
--cc=57371-done@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).