Why do (shell-command-to-string "echo $PATH")
and echo $PATH
in eshell
differ from echo $PATH
from ansi-term
and gnome terminal
in Ubuntu?
Some paths are missing from (shell-command-to-string "echo $PATH")
and echo $PATH
in eshell
.
Emacs apparently does not read .bashrc
nor .bash_profile
nor .profile
. Thus, paths added to $PATH
using export PATH="<some_path>:$PATH"
in any of above files are not visible to Emacs.
This behavior is same when I connect to emacsclient
from terminal.
I'm using emacs --deamon
on startup.