Function: eshell-concat-1

eshell-concat-1 is a byte-compiled function defined in esh-arg.el.gz.

Signature

(eshell-concat-1 QUOTED FIRST SECOND)

Documentation

Concatenate FIRST and SECOND.

If QUOTED is nil and either FIRST or SECOND are numberlike, try to mark the result as a number as well.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-arg.el.gz
(defun eshell-concat-1 (quoted first second)
  "Concatenate FIRST and SECOND.
If QUOTED is nil and either FIRST or SECOND are numberlike, try to mark
the result as a number as well."
  (let ((result (concat (eshell-stringify first quoted)
                        (eshell-stringify second quoted))))
    (when (and (not quoted)
               (or (numberp first)  (eshell--numeric-string-p first)
                   (numberp second) (eshell--numeric-string-p second)))
      (eshell-mark-numeric-string result))
    result))