If I do:
(getenv "PATH")
I get a list of colon-separated directories, including:
/Users/michaeln/Library/Haskell/bin
If I look at the exec-path
variable, I see a list including the same directory. If I do:
(shell-command "echo $PATH")
I get a list of colon-separated directories including the same Haskell/bin
directory as above. There is an executable pandoc
in that directory. And yet, if I do:
(shell-command "pandoc")
I get in response:
/bin/bash: pandoc: command not found
What am I doing wrong?
pandoc
is located to yourexec-path
: emacswiki.org/emacs/ExecPathpandoc
frombash
shell prompt?exec-path
variable...".M-x shell
and typepandoc --version
, or if I run my usual shell within Terminal.app.exec-path
is only relevant to binaries Emacs wants to run. In this instance Emacs is running a shell (and the shell is running pandoc), so I believe there's no particular reason in this case for pandoc to be accessible fromexec-path
.