Function: eshell-stringify
eshell-stringify is a byte-compiled function defined in
esh-util.el.gz.
Signature
(eshell-stringify OBJECT)
Documentation
Convert OBJECT into a string value.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-util.el.gz
(defun eshell-stringify (object)
"Convert OBJECT into a string value."
(cond
((stringp object) object)
((and (listp object)
(not (eq object nil)))
(let ((string (pp-to-string object)))
(substring string 0 (1- (length string)))))
((numberp object)
(number-to-string object))
(t
(unless (and (eq object t)
(not eshell-stringify-t))
(pp-to-string object)))))