From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Larry Evans Newsgroups: gmane.emacs.help Subject: emacs doesn't inherit PATH from environment Date: Mon, 12 Feb 2018 09:51:51 -0600 Message-ID: <2479cfa5-fc07-9720-8401-e1092176149c@suddenlink.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1518454874 17229 195.159.176.226 (12 Feb 2018 17:01:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2018 17:01:14 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 12 18:01:10 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elHTR-0003gp-MX for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 18:01:01 +0100 Original-Received: from localhost ([::1]:53486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elHVP-0001U8-FI for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 12:03:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elGOb-0006aM-TZ for help-gnu-emacs@gnu.org; Mon, 12 Feb 2018 10:52:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elGOZ-0004Fz-5B for help-gnu-emacs@gnu.org; Mon, 12 Feb 2018 10:51:57 -0500 Original-Received: from omta01.suddenlink.net ([208.180.40.71]:54685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elGOY-0004DG-Ug for help-gnu-emacs@gnu.org; Mon, 12 Feb 2018 10:51:55 -0500 Original-Received: from [192.168.1.2] (really [50.24.69.180]) by dalofep01.suddenlink.net (InterMail vM.8.04.03.22 201-2389-100-167-20150619) with ESMTP id <20180212155151.IUUT17510.dalofep01.suddenlink.net@[192.168.1.2]> for ; Mon, 12 Feb 2018 09:51:51 -0600 Content-Language: en-US X-Cloudmark-Analysis: v=2.2 cv=bJNUG72Z c=1 sm=0 tr=0 a=IkcTkHD0fZMA:10 a=Op4juWPpsa0A:10 a=JtKO0qa84fwU7NTx1BUA:9 a=QEXdDO2ut3YA:10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 208.180.40.71 X-Mailman-Approved-At: Mon, 12 Feb 2018 11:39:09 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115960 Archived-At: 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