emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exec-path and PATH


From: Eli Zaretskii
Subject: Re: exec-path and PATH
Date: Sat, 19 Mar 2011 22:59:23 +0200

> From: Christoph Scholtes <address@hidden>
> Cc: address@hidden
> Date: Sat, 19 Mar 2011 13:50:03 -0600
> 
> 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.

I don't see a point in this.  PATH in process-environment is not used
within Emacs except to pass it to sub-processes.  Why would we want to
restore its value after the sub-process exits?

> > 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.

Concatenating a few dozen of strings cannot take too much.

> >> 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.

Yes, but how is this relevant to the issue at hand?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]