From: Christoph Scholtes <cschol2112@googlemail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: exec-path and PATH
Date: Sat, 19 Mar 2011 13:50:03 -0600 [thread overview]
Message-ID: <86wrjuhous.fsf@gmail.com> (raw)
In-Reply-To: <83tyez9g3n.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Mar 2011 19:26:20 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> Can we set PATH to exec-path for the duration of the shell
>> execution?
>
> What do you mean by "shell execution"?
While the shell is executing the external program.
> 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.
That should work, but I wonder if we want to do this work before every
process. It would be nicer to sync the two whenever exec-path is
modified. I don't know if this is possible though when modifying
exec-path diretcly via setq, for example.
Maybe that's premature optimization tough.
> 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.
This would only be a problem if the exec-path was modified between two
processes. Also, this problem exists today, if I modify the PATH in
between two processes via setenv, right?
>> 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.
I can change the PATH after running an instance of cmd.exe, no? It will
change the PATH for that session only, iirc.
Christoph
next prev parent reply other threads:[~2011-03-19 19:50 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
2011-03-19 19:50 ` Christoph Scholtes [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86wrjuhous.fsf@gmail.com \
--to=cschol2112@googlemail.com \
--cc=eliz@gnu.org \
--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 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.