Function: filesets-select-command

filesets-select-command is a byte-compiled function defined in filesets.el.gz.

Signature

(filesets-select-command CMD-LIST)

Documentation

Select one command from CMD-LIST -- a string with space separated names.

Source Code

;; Defined in /usr/src/emacs/lisp/filesets.el.gz
(defun filesets-select-command (cmd-list)
  "Select one command from CMD-LIST -- a string with space separated names."
  (let ((this (shell-command-to-string
	       (format "which --skip-alias %s 2> %s | head -n 1"
		       cmd-list null-device))))
    (if (equal this "")
	nil
      (file-name-nondirectory (substring this 0 (- (length this) 1))))))