Function: sh--cmd-completion-table-gen
sh--cmd-completion-table-gen is a byte-compiled function defined in
sh-script.el.gz.
Signature
(sh--cmd-completion-table-gen STRING)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/sh-script.el.gz
;; (defun sh--var-completion-table (string pred action)
;; (complete-with-action action (sh--vars-before-point) string pred))
(defun sh--cmd-completion-table-gen (string)
(append (when (fboundp 'imenu--make-index-alist)
(mapcar #'car
(condition-case nil
(imenu--make-index-alist)
(imenu-unavailable nil))))
(mapcar (lambda (v) (concat v "="))
(sh--vars-before-point))
(locate-file-completion-table
exec-path exec-suffixes string nil t)
sh--completion-keywords))