From: Jim Porter <jporterbugs@gmail.com>
To: Siyuan Chen <chansey97@gmail.com>, 74550@debbugs.gnu.org
Subject: bug#74550: eshell cannot set the environment variable PATH on Windows
Date: Tue, 26 Nov 2024 13:14:42 -0800 [thread overview]
Message-ID: <c4ea213a-df40-b9ee-b555-6bb456da31cc@gmail.com> (raw)
In-Reply-To: <CAHWTsYnSNUYnBkoLGf+XfmfVZ9XebLq6EiCo3-K3HU47ObCuMw@mail.gmail.com>
On 11/26/2024 12:38 PM, Siyuan Chen wrote:
> Reproduce steps:
>
> 1. Emacs -Q
>
> 2. M-x eval-expression `(setenv "PATH" (concat "C:/env" path-separator
> (getenv "PATH")))`
>
> 3. M-x eshell
>
> 4. In the *eshell* window, type `echo $PATH`, but the path "C:/env"
> doesn't show in the result.
Thanks for the bug report. This is an intentionally-incompatible change
in Eshell to improve behavior with remote systems via Tramp. Here's the
relevant section from the Emacs 29 NEWS:
> *** Eshell's PATH is now derived from 'exec-path'.
> For consistency with remote connections, Eshell now uses 'exec-path'
> to determine the execution path on the local or remote system, instead
> of using the PATH environment variable directly.
So instead, you want to do something like '(push "C:/env" exec-path)' in
order to update the PATH in a way where Eshell sees it.
next prev parent reply other threads:[~2024-11-26 21:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-26 20:38 bug#74550: eshell cannot set the environment variable PATH on Windows Siyuan Chen
2024-11-26 21:14 ` Jim Porter [this message]
2024-11-27 17:15 ` Siyuan Chen
2024-11-27 18:52 ` Jim Porter
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c4ea213a-df40-b9ee-b555-6bb456da31cc@gmail.com \
--to=jporterbugs@gmail.com \
--cc=74550@debbugs.gnu.org \
--cc=chansey97@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.