Function: ghostel--shell-program-and-args
ghostel--shell-program-and-args is a natively compiled function
defined in ghostel-shell.el.
Signature
(ghostel--shell-program-and-args SPEC)
Documentation
Split a ghostel-shell-style SPEC into (PROGRAM . ARGS).
SPEC may be a string (just the program path) or a list whose first element is the program path and the remaining elements are arguments.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-shell.el
(defun ghostel--shell-program-and-args (spec)
"Split a `ghostel-shell'-style SPEC into (PROGRAM . ARGS).
SPEC may be a string (just the program path) or a list whose first
element is the program path and the remaining elements are arguments."
(cond
((stringp spec) (cons spec nil))
((and (consp spec) (stringp (car spec)))
(cons (car spec) (cdr spec)))
(t (error "Invalid ghostel-shell value: %S" spec))))