help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: emacs doesn't inherit PATH from environment


From: Larry Evans
Subject: Re: emacs doesn't inherit PATH from environment
Date: Tue, 13 Feb 2018 20:24:00 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 02/13/2018 07:27 PM, Glenn Morris wrote:
Larry Evans wrote:

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

Incorrect use of ";" rather than ":" to separate elements at the start of PATH.


AH!  Correct.  After change to : all worked as expected:

--{--cut here--
-*- mode: compilation; default-directory: "~/prog_dev/python/pdfminer/pdfminer/" -*-
Compilation started at Tue Feb 13 20:22:30

make -k which
tail ~/.emacs.d/init.common.el
      (transient-mark-mode 1)
))

(setenv "PATH"
  (concat
   "/home/evansl/anaconda3/bin" ":"
   "/home/evansl/miniconda3/bin" ":"
   (getenv "PATH")
  )
)
which pdf2txt.py
/home/evansl/anaconda3/bin/pdf2txt.py

Compilation finished at Tue Feb 13 20:22:30

--}--cut here--
Thanks to everybody for the help and especially to those
who caught the typo ;)

-regards,
Larry




reply via email to

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