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/ExecPath – lawlist Apr 8 '15 at 5:46pandoc
frombash
shell prompt? – Madhavan Apr 8 '15 at 5:53exec-path
variable...". – Michael Norrish Apr 8 '15 at 5:57M-x shell
and typepandoc --version
, or if I run my usual shell within Terminal.app. – Michael Norrish Apr 8 '15 at 5:58exec-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
. – phils Apr 8 '15 at 7:35