Function: embark--shell-prep
embark--shell-prep is a byte-compiled function defined in embark.el.
Signature
(embark--shell-prep &key TYPE &allow-other-keys)
Documentation
Prepare target for use as argument for a shell command.
If the target's TYPE is file, this quotes the spaces, inserts an extra space at the beginning and leaves the point to the left of it.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(cl-defun embark--shell-prep (&key type &allow-other-keys)
"Prepare target for use as argument for a shell command.
If the target's TYPE is file, this quotes the spaces, inserts an extra
space at the beginning and leaves the point to the left of it."
(when (eq type 'file)
(let ((contents (minibuffer-contents)))
(delete-minibuffer-contents)
(insert " " (shell-quote-wildcard-pattern contents))
(goto-char (minibuffer-prompt-end)))))