Function: eshell/env
eshell/env is a byte-compiled function defined in esh-var.el.gz.
Signature
(eshell/env &rest ARGS)
Documentation
Implementation of env in Lisp.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-var.el.gz
;; FIXME the real "env" command does more than this, it runs a program
;; in a modified environment.
(defun eshell/env (&rest args)
"Implementation of `env' in Lisp."
(eshell-init-print-buffer)
(eshell-eval-using-options
"env" args
'((?h "help" nil nil "show this usage screen")
:external "env"
:usage "<no arguments>")
(dolist (setting (sort (eshell-environment-variables) 'string-lessp))
(eshell-buffered-print setting "\n"))
(eshell-flush)))