Variable: eshell-glob-translate-alist

eshell-glob-translate-alist is a customizable variable defined in em-glob.el.gz.

Value

Large value
((93 . "]")
 (91 . "[")
 (94 . "^")
 (63 . ".")
 (42 . ".*")
 (126 . "~")
 (40 . "\\(")
 (41 . "\\)")
 (124 . "\\|")
 (35 lambda
     (str pos)
     (if
	 (and
	  (<
	   (1+ pos)
	   (length str))
	  (memq
	   (aref str
		 (1+ pos))
	   '(42 35 43 63)))
	 (cons
	  (if
	      (eq
	       (aref str
		     (1+ pos))
	       63)
	      "?"
	    (if
		(eq
		 (aref str
		       (1+ pos))
		 42)
		"*" "+"))
	  (+ pos 2))
       (cons "*"
	     (1+ pos)))))

Documentation

An alist for translation of extended globbing characters.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-glob.el.gz
(defcustom eshell-glob-translate-alist
  '((?\] . "]")
    (?\[ . "[")
    (?^  . "^")
    (??  . ".")
    (?*  . ".*")
    (?~  . "~")
    (?\( . "\\(")
    (?\) . "\\)")
    (?\| . "\\|")
    (?#  . (lambda (str pos)
	     (if (and (< (1+ pos) (length str))
		      (memq (aref str (1+ pos)) '(?* ?# ?+ ??)))
		 (cons (if (eq (aref str (1+ pos)) ??)
			   "?"
			 (if (eq (aref str (1+ pos)) ?*)
			     "*" "+")) (+ pos 2))
	       (cons "*" (1+ pos))))))
  "An alist for translation of extended globbing characters."
  :type '(alist :key-type character
		:value-type (choice string function))
  :group 'eshell-glob)