Function: eshell-glob-p

eshell-glob-p is a byte-compiled function defined in em-glob.el.gz.

This function is obsolete since 31.1.

Signature

(eshell-glob-p PATTERN)

Documentation

Return non-nil if PATTERN has any special glob characters.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-glob.el.gz
(defun eshell-glob-p (pattern)
  "Return non-nil if PATTERN has any special glob characters."
  (declare (obsolete nil "31.1"))
  ;; "~" is an infix globbing character, so one at the start of a glob
  ;; must be a literal.
  (let ((start (if (string-prefix-p "~" pattern) 1 0)))
    (string-match (eshell-glob-chars-regexp) pattern start)))