all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs doesn't inherit PATH from environment
@ 2018-02-12 15:51 Larry Evans
  2018-02-14  1:27 ` Glenn Morris
       [not found] ` <mailman.9075.1518571658.27995.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 24+ messages in thread
From: Larry Evans @ 2018-02-12 15:51 UTC (permalink / raw)
  To: help-gnu-emacs

When executing a Makefile or invoking eshell, the PATH is not the same
as when running from a terminal window.  Even when I modify the
PATH in the emacs initialization code in ~/emacs.d/init.common.el,
the executables in the PATH are *not* found.

For example, in a terminal:

evansl@lje-OptiPlex-9020:~$ echo $PATH
/home/evansl/anaconda3/bin:/home/evansl/miniconda3/bin:/home/evansl/.nvm/versions/node/v7.7.1/bin:/home/evansl/dwnlds/depot_tools/depot_tools:/home/evansl/dwnlds/gsrc.top/install/bin:/home/evansl/bin:/opt/OpenPrinting-Gutenprint/sbin:/opt/OpenPrinting-Gutenprint/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
evansl@lje-OptiPlex-9020:~$ which pdf2txt.py
/home/evansl/anaconda3/bin/pdf2txt.py
evansl@lje-OptiPlex-9020:~$

However, in emacs eshell with the PATH set in ~/emacs.d/init.common.el:

Welcome to the Emacs shell

~/.emacs.d $ echo $PATH
/home/evansl/anaconda3/bin;/home/evansl/miniconda3/bin;/home/evansl/dwnlds/depot_tools/depot_tools:/home/evansl/dwnlds/gsrc.top/install/bin:/home/evansl/bin:/opt/OpenPrinting-Gutenprint/sbin:/opt/OpenPrinting-Gutenprint/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
~/.emacs.d $ which pdf2txt.py
which: no pdf2txt.py in 
(/home/evansl/anaconda3/bin;/home/evansl/miniconda3/bin;/home/evansl/dwnlds/depot_tools/depot_tools:/home/evansl/dwnlds/gsrc.top/install/bin:/home/evansl/bin:/opt/OpenPrinting-Gutenprint/sbin:/opt/OpenPrinting-Gutenprint/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin)
~/.emacs.d $ ls -ld /home/evansl/anaconda3/bin/pdf2txt.py
-rwxrwxr-x   1 evansl         evansl       3436 2018-02-12 06:18 
/home/evansl/anaconda3/bin/pdf2txt.py
~/.emacs.d $

My emacs version and OS:

evansl@lje-OptiPlex-9020:~$ emacs --version
GNU Emacs 24.5.1
Copyright (C) 2015 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
evansl@lje-OptiPlex-9020:~$ uname -a
Linux lje-OptiPlex-9020 4.4.0-112-generic #135-Ubuntu SMP Fri Jan 19 
11:48:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
evansl@lje-OptiPlex-9020:~$

How can I get emacs to find pdf2txt.py?

TIA.

-regards,
Larry



^ permalink raw reply	[flat|nested] 24+ messages in thread
[parent not found: <mailman.8985.1518453550.27995.help-gnu-emacs@gnu.org>]
[parent not found: <mailman.9076.1518571984.27995.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2018-02-16 17:14 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-12 15:51 emacs doesn't inherit PATH from environment Larry Evans
2018-02-14  1:27 ` Glenn Morris
2018-02-14  2:24   ` Larry Evans
2018-02-14 14:53     ` Larry Evans
2018-02-14 23:18       ` Robert Thorpe
2018-02-15  1:03         ` Larry Evans
2018-02-15  2:38           ` Bob Proulx
     [not found]           ` <mailman.9140.1518662330.27995.help-gnu-emacs@gnu.org>
2018-02-15 15:59             ` Barry Fishman
2018-02-15 20:18               ` Bob Proulx
     [not found]         ` <mailman.9127.1518652911.27995.help-gnu-emacs@gnu.org>
2018-02-16 16:58           ` Emanuel Berg
     [not found]     ` <mailman.9096.1518616283.27995.help-gnu-emacs@gnu.org>
2018-02-16 16:54       ` Emanuel Berg
     [not found] ` <mailman.9075.1518571658.27995.help-gnu-emacs@gnu.org>
2018-02-14  1:38   ` Emanuel Berg
     [not found] <mailman.8985.1518453550.27995.help-gnu-emacs@gnu.org>
2018-02-13 19:12 ` Emanuel Berg
2018-02-13 23:57   ` Larry Evans
     [not found]   ` <mailman.9069.1518566292.27995.help-gnu-emacs@gnu.org>
2018-02-14  0:11     ` Emanuel Berg
2018-02-14  0:48       ` Larry Evans
2018-02-14  1:45         ` Robert Thorpe
2018-02-14  2:35           ` Larry Evans
     [not found]       ` <mailman.9071.1518569365.27995.help-gnu-emacs@gnu.org>
2018-02-14  1:23         ` Emanuel Berg
2018-02-14  1:25         ` Emanuel Berg
2018-02-14  1:32   ` Robert Thorpe
2018-02-14 19:19   ` Bastian Beischer
     [not found]   ` <mailman.9115.1518635972.27995.help-gnu-emacs@gnu.org>
2018-02-16 17:14     ` Emanuel Berg
     [not found] <mailman.9076.1518571984.27995.help-gnu-emacs@gnu.org>
2018-02-14  1:43 ` Emanuel Berg

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.