From cec661b7d0e6d0eda31a97b5621d361ae5c71de3 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-racket.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'elisp/geiser-racket.el') diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el index ac7626a..c51b08c 100644 --- a/elisp/geiser-racket.el +++ b/elisp/geiser-racket.el @@ -363,10 +363,7 @@ using start-geiser, a procedure in the geiser/server module." (defvar geiser-racket-minimum-version "5.3") (defun geiser-racket--version (binary) - (shell-command-to-string - (format "%s -e %s" - (shell-quote-argument binary) - (shell-quote-argument "(display (version))")))) + (car (process-lines binary "-e" "(display (version))"))) (defvar geiser-racket--image-cache-dir nil) -- cgit v1.2.3