Function: hpath:command-string
hpath:command-string is a byte-compiled function defined in hpath.el.
Signature
(hpath:command-string CMD FILENAME)
Documentation
Return a single string that runs a shell CMD over FILENAME.
CMD may contain a single %s indicating where FILENAME is to
be integrated, otherwise the filename is appended as a double-quoted argument.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
;;; ************************************************************************
;;; Private functions
;;; ************************************************************************
(defun hpath:command-string (cmd filename)
"Return a single string that runs a shell CMD over FILENAME.
CMD may contain a single `%s' indicating where FILENAME is to
be integrated, otherwise the filename is appended as a double-quoted argument."
;; Permit %s substitution of filename within program.
(if (string-match "[^%]%s" cmd)
(format cmd filename)
(format "%s \"%s\"" cmd filename)))