[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exec path
From: |
Eli Zaretskii |
Subject: |
Re: exec path |
Date: |
Fri, 23 Aug 2013 20:45:24 +0300 |
> Date: Fri, 23 Aug 2013 09:57:52 -0700 (PDT)
> From: Rami A <rami.ammari@gmail.com>
> Injection-Date: Fri, 23 Aug 2013 16:57:53 +0000
>
> I am in the same boat.
> I have exec-path including the bin directory I have my scripts in but then
> doing:
> M-x compile then echo $PATH I don't see that directory.
> Trying to start any of the scripts by doing M-x compile then "script_name"
> will prompt emacs to recognize the command.
> I also tried adding to $PATH from my .emscs file but that did not work as
> well.
> So this did not work:
> (setenv "PATH" (concat (getenv "PATH") ":" (expand-file-name "~/mybin")))
> (setq exec-path (append exec-path (list (expand-file-name "~/mybin")))
>
> Any pointers?
Set up your PATH outside Emacs to include that "bin directory you have
your scripts in", and Bob's your uncle.
Having exec-path and PATH different is asking for trouble, because
some Emacs commands go through the shell (which looks at PATH), while
others invoke programs directly using exec-path. If you care about
your sanity, don't ever let these two be out of sync.
- exec path, Klaus Jantzen, 2013/08/21
- Re: exec path, Peter Dyballa, 2013/08/21
- Re: exec path, Klaus Jantzen, 2013/08/22
- Re: exec path, Peter Dyballa, 2013/08/22
- Re: exec path, Klaus Jantzen, 2013/08/22
- Re: exec path, Andreas Röhler, 2013/08/22
- Re: exec path, Peter Dyballa, 2013/08/22
- Message not available
- Re: exec path, Rami A, 2013/08/23
- Re: exec path,
Eli Zaretskii <=
- Message not available
- Re: exec path, Rami A, 2013/08/23
- Re: exec path, Peter Dyballa, 2013/08/23
- Message not available
- Re: exec path, Rami A, 2013/08/23
- Re: exec path, Thien-Thi Nguyen, 2013/08/23
- Re: exec path, Richard Riley, 2013/08/26
- Re: exec path, Suvayu Ali, 2013/08/27
- Re: exec path, Stefan Monnier, 2013/08/27
- Re: exec path, Peter Dyballa, 2013/08/28
- Re: exec path, Neuwirth Erich, 2013/08/28
- Re: exec path, Stefan Monnier, 2013/08/22