From: Eli Zaretskii <eliz@gnu.org>
To: Christoph Scholtes <cschol2112@googlemail.com>
Cc: emacs-devel@gnu.org
Subject: Re: exec-path and PATH
Date: Sat, 19 Mar 2011 19:26:20 +0200 [thread overview]
Message-ID: <83tyez9g3n.fsf@gnu.org> (raw)
In-Reply-To: <86ei63hxsz.fsf@gmail.com>
> From: Christoph Scholtes <cschol2112@googlemail.com>
> Cc: emacs-devel@gnu.org
> Date: Sat, 19 Mar 2011 10:36:44 -0600
>
> Can we set PATH to exec-path for the duration of the shell
> execution?
What do you mean by "shell execution"?
What I had in mind was that we should synchronize PATH with exec-path
each time we invoke a subsidiary process, either through call-process
or start-process.
There could be an issue with async subprocesses that are already
running, though: they still use the old PATH, while Emacs will see the
new value. This could lead to subtle bugs.
> IIRC, if you change the PATH in a cmd session it only applies to
> that session.
But we don't change PATH _in_ the cmd session, we change it _before_
the session begins.
next prev parent reply other threads:[~2011-03-19 17:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-19 3:19 exec-path and PATH Christoph Scholtes
2011-03-19 8:10 ` Eli Zaretskii
2011-03-19 16:36 ` Christoph Scholtes
2011-03-19 17:26 ` Eli Zaretskii [this message]
2011-03-19 19:50 ` Christoph Scholtes
2011-03-19 20:59 ` Eli Zaretskii
2011-03-20 19:45 ` Christoph Scholtes
2011-03-20 20:36 ` Eli Zaretskii
2011-03-20 20:46 ` Eric Hanchrow
2011-03-21 14:04 ` Eric Schulte
2011-03-20 22:44 ` Wojciech Meyer
2011-03-19 16:49 ` Christoph Scholtes
2011-03-19 17:18 ` PJ Weisberg
2011-03-19 17:23 ` Christoph Scholtes
2011-03-19 18:52 ` Harald Hanche-Olsen
2011-03-20 2:53 ` Stefan Monnier
2011-03-19 17:43 ` Eli Zaretskii
2011-03-20 2:50 ` Stefan Monnier
2011-03-20 6:34 ` Eli Zaretskii
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=83tyez9g3n.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=cschol2112@googlemail.com \
--cc=emacs-devel@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).