aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell
diff options
context:
space:
mode:
authorGlenn Morris2012-08-04 22:24:50 -0700
committerGlenn Morris2012-08-04 22:24:50 -0700
commita4f2deaaeba642460b7a0899aa61f7d68e1c69f2 (patch)
tree78193fc2ecf6ecd2e7b1167aecab7a7fee52e681 /lisp/eshell
parent32d9ba9ac2ae534cb687b81d990355f77c65aaf2 (diff)
downloademacs-a4f2deaaeba642460b7a0899aa61f7d68e1c69f2.tar.gz
emacs-a4f2deaaeba642460b7a0899aa61f7d68e1c69f2.zip
* lisp/eshell/esh-ext.el (eshell/addpath): Also update eshell-path-env.
Fixes: debbugs:12013
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/esh-ext.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/eshell/esh-ext.el b/lisp/eshell/esh-ext.el
index 603da6f2e30..17020245575 100644
--- a/lisp/eshell/esh-ext.el
+++ b/lisp/eshell/esh-ext.el
@@ -235,7 +235,8 @@ Adds the given PATH to $PATH.")
235 (getenv "PATH")) 235 (getenv "PATH"))
236 (concat (getenv "PATH") path-separator 236 (concat (getenv "PATH") path-separator
237 (car args)))) 237 (car args))))
238 (setq args (cdr args)))) 238 (setq args (cdr args)))
239 (setq eshell-path-env (getenv "PATH")))
239 (let ((paths (parse-colon-path (getenv "PATH")))) 240 (let ((paths (parse-colon-path (getenv "PATH"))))
240 (while paths 241 (while paths
241 (eshell-printn (car paths)) 242 (eshell-printn (car paths))