Your bug report #20008: 24.4; Eshell eshell/which uses eshell-path-env but error with (getenv "PATH"), and these 2 sometimes get out of sync (not remote directory) which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 20008@debbugs.gnu.org. -- 20008: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20008 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems