From: Larry Evans <cppljevans@suddenlink.net>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs doesn't inherit PATH from environment
Date: Tue, 13 Feb 2018 18:48:56 -0600 [thread overview]
Message-ID: <p600tr$nm7$1@blaine.gmane.org> (raw)
In-Reply-To: <861shoe8h6.fsf@zoho.com>
On 02/13/2018 06:11 PM, Emanuel Berg wrote:
> Larry Evans wrote:
>
>> So, I still can't figure how to get emacs to
>> find pdf2txt.py in home/evansl/anaconda3/bin/
>> by setting PATH somehow.
>
> Try to make the example as small as possible.
The one shown previously is pretty small!
> Like a shell script or/and a Makefile that
> echoes PATH and then execute the script.
>
> Also try place a dummy executable in the same
> dir and execute that. Does that work?
>
OK, but this Makefile is the same as the previous one
except for the echo of $PATH before the make and
the additional print and the execution of the
dummy_executable.sh script:
--{--cut here--
which:
echo "PATH=$(PATH)"
ls -ld /home/evansl/anaconda3/bin/pdf2txt.py
cat dummy_executable.sh
./dummy_executable.sh
which pdf2txt.py
--}--cut here--
Here's the result of invoking make from emacs:
--{--cut here--
-*- mode: compilation; default-directory:
"~/prog_dev/python/pdfminer/pdfminer/" -*-
Compilation started at Tue Feb 13 18:47:20
make -k which
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"
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
ls -ld /home/evansl/anaconda3/bin/pdf2txt.py
-rwxrwxr-x 1 evansl evansl 3436 Feb 12 06:18
/home/evansl/anaconda3/bin/pdf2txt.py
cat dummy_executable.sh
#!/bin/bash
echo $PATH
./dummy_executable.sh
/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
which pdf2txt.py
Makefile:29: recipe for target 'which' failed
make: *** [which] Error 1
Compilation exited abnormally with code 2 at Tue Feb 13 18:47:20
--}--cut here--
Does that help?
-regards,
Larry
next prev parent reply other threads:[~2018-02-14 0:48 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.8985.1518453550.27995.help-gnu-emacs@gnu.org>
2018-02-13 19:12 ` emacs doesn't inherit PATH from environment 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 [this message]
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
2018-02-12 15:51 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='p600tr$nm7$1@blaine.gmane.org' \
--to=cppljevans@suddenlink.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).