Function: eshell-set-path

eshell-set-path is a byte-compiled function defined in esh-util.el.gz.

Signature

(eshell-set-path PATH)

Documentation

Set the Eshell $PATH to PATH.

PATH can be either a list of directories or a string of directories separated by path-separator(var)/path-separator(fun).

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-util.el.gz
(defun eshell-set-path (path)
  "Set the Eshell $PATH to PATH.
PATH can be either a list of directories or a string of
directories separated by `path-separator'."
  (with-connection-local-application-variables 'eshell
    (setq-connection-local
     eshell-path-env-list
     (if (listp path)
	 path
       ;; Don't use `parse-colon-path' here, since we don't want
       ;; the additional translations it does on each element.
       (split-string path (path-separator))))))