Function: eshell-parse-user-reference

eshell-parse-user-reference is a byte-compiled function defined in em-dirs.el.gz.

Signature

(eshell-parse-user-reference)

Documentation

An argument beginning with ~ is a filename to be expanded.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-dirs.el.gz
(defun eshell-parse-user-reference ()
  "An argument beginning with ~ is a filename to be expanded."
  (when (and (not eshell-current-argument)
             (not eshell-current-quoted)
             (eq (char-after) ?~))
    ;; Apply this modifier fairly early so it happens before things
    ;; like glob expansion.
    (add-hook 'eshell-current-modifiers #'eshell-expand-user-reference -50)
    (forward-char)
    (char-to-string (char-before))))