From 2fb484bac916304c255580fcb9feb3b9cc771ac3 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 21 Sep 2016 10:07:21 -0400 Subject: Use (car (process-lines ...)) instead of (shell-command ...) `shell-command` assumes Bourne-shell-compatible quoting, which doesn't work when the user isn't using a Bourne-compatible shell. Instead of futzing about with quoting, we can just use `process-lines` to execute a process and pass it arguments directly. --- elisp/geiser-chez.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/elisp/geiser-chez.el b/elisp/geiser-chez.el index 1793cfd..17b6c8d 100644 --- a/elisp/geiser-chez.el +++ b/elisp/geiser-chez.el @@ -96,9 +96,7 @@ This function uses `geiser-chez-init-file' if it exists." (defconst geiser-chez-minimum-version "9.4") (defun geiser-chez--version (binary) - (shell-command-to-string - (format "%s --version" - (shell-quote-argument binary)))) + (car (process-lines binary "--version"))) (defun geiser-chez--startup (remote) (let ((geiser-log-verbose-p t)) -- cgit v1.2.3