Function: eshell-ls--expand-wildcards

eshell-ls--expand-wildcards is a byte-compiled function defined in em-ls.el.gz.

Signature

(eshell-ls--expand-wildcards FILE)

Documentation

Expand the shell wildcards in FILE if any.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-ls.el.gz
(defun eshell-ls--expand-wildcards (file)
  "Expand the shell wildcards in FILE if any."
  (if (and (atom file)
           (not (file-exists-p file)))
      (let ((eshell-error-if-no-glob t)
            ;; Ensure `eshell-extended-glob' returns a list.
            (eshell-glob-splice-results t))
        (mapcar #'file-relative-name (eshell-extended-glob file)))
    (list (file-relative-name file))))