all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Larry Evans <cppljevans@suddenlink.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs doesn't inherit PATH from environment
Date: Wed, 14 Feb 2018 23:18:43 +0000	[thread overview]
Message-ID: <874lmjma7g.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <p61enk$1a5$1@blaine.gmane.org> (message from Larry Evans on Wed, 14 Feb 2018 08:53:10 -0600)

Larry Evans <cppljevans@suddenlink.net> writes:

> But why must I prepend the missing paths with that
> (setenv "PATH"...) in my ~/.emacs.d/init.common.el?
> After all, according to:
>
>    The value of environment variable “PATH” is used by emacs when you are
>    running a shell in emacs, similar to when you are using a shell in
>    a terminal.
>
> from here:
>
>    https://www.emacswiki.org/emacs/ExecPath
>
> that should be done automatically.
>
> I think the answer is that I usually invoke emacs
> from a pulldown menu in my window system, and I'm
> guessing that doesn't use my bash environmnent.
> However, when, in my ~/.profile, the PATH is exported,
> then *that* PATH shows up in emacs; so, I'm guessing
> the windowing system uses sh instead of bash and
> therefore the PATH is taken from sh instead of bash.

I'm not sure I understand what your saying here.

The point that Glenn Morris made is that the separator for path elements
is ":" on Unix-like systems.

It should be possible to fix $PATH anywhere.  It should if you change
the semi-colons to colons in the original definition or within Emacs.
Of course, if you only do it in Emacs then only tools called from Emacs
will see the change.

BR,
Robert Thorpe



  reply	other threads:[~2018-02-14 23:18 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874lmjma7g.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=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.
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.