I have written several emacs functions which depend on the getenv function. Recently it has been returning 'nil'. There has been no change to the functions.
In the emacs shell buffer, the set command shows that 'EMACS_PATH' has a value, so the environment has been passed to emacs.
Code:
$ echo $EMACS_PATH
/mnt/jim/emacs
Code:
(defun nav ()
"Visit nav.el"
(interactive)
(let (emacs-dir)
(setq emacs-dir (getenv "EMACS_PATH"))
(find-file (concat emacs-dir "/nav.el"))))
The argument passed to find-file is /nav.el, not /mnt/jim/emacs/nav.el.
/etc/bash.bashrc contains
I'm using Kubuntu 12.04.2 regularly updated.
What do I need to do to get getenv working again?