Function: eshell-stringify
eshell-stringify is a byte-compiled function defined in
esh-util.el.gz.
Signature
(eshell-stringify OBJECT &optional QUOTED)
Documentation
Convert OBJECT into a string value.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-util.el.gz
(defun eshell-stringify (object &optional quoted)
"Convert OBJECT into a string value."
(cond
((stringp object) object)
((numberp object)
(if quoted
(number-to-string object)
(propertize (number-to-string object) 'number t)))
((and (eq object t)
(not eshell-stringify-t))
nil)
(t
(string-trim-right (pp-to-string object)))))