Function: org-link--open-shell
org-link--open-shell is a byte-compiled function defined in ol.el.gz.
Signature
(org-link--open-shell PATH _)
Documentation
Open a "shell" type link.
PATH is the command to execute, as a string.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ol.el.gz
;;;; "shell" link type
(defun org-link--open-shell (path _)
"Open a \"shell\" type link.
PATH is the command to execute, as a string."
(if (or (and (org-string-nw-p org-link-shell-skip-confirm-regexp)
(string-match-p org-link-shell-skip-confirm-regexp path))
(not org-link-shell-confirm-function)
(funcall org-link-shell-confirm-function
(format "Execute %s in shell? "
(org-add-props path nil 'face 'org-warning))))
(let ((buf (generate-new-buffer "*Org Shell Output*")))
(message "Executing %s" path)
(shell-command path buf)
(when (featurep 'midnight)
(setq clean-buffer-list-kill-buffer-names
(cons (buffer-name buf)
clean-buffer-list-kill-buffer-names))))
(user-error "Abort")))