[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exec-path and PATH
From: |
Christoph Scholtes |
Subject: |
Re: exec-path and PATH |
Date: |
Sat, 19 Mar 2011 13:50:03 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) |
Eli Zaretskii <address@hidden> 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
- exec-path and PATH, Christoph Scholtes, 2011/03/18
- Re: exec-path and PATH, Eli Zaretskii, 2011/03/19
- Re: exec-path and PATH, Christoph Scholtes, 2011/03/19
- Re: exec-path and PATH, Eli Zaretskii, 2011/03/19
- Re: exec-path and PATH,
Christoph Scholtes <=
- Re: exec-path and PATH, Eli Zaretskii, 2011/03/19
- Re: exec-path and PATH, Christoph Scholtes, 2011/03/20
- Re: exec-path and PATH, Eli Zaretskii, 2011/03/20
- Re: exec-path and PATH, Eric Hanchrow, 2011/03/20
- Re: exec-path and PATH, Eric Schulte, 2011/03/21
- Re: exec-path and PATH, Wojciech Meyer, 2011/03/20
Re: exec-path and PATH, Christoph Scholtes, 2011/03/19