From 3319d2785711aa7e717f5d68a09523307bf126f1 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Wed, 21 Oct 2015 02:29:46 +0200 Subject: Use OS-specific quotes when asking for versions Fixes #95. This is @kovrik's patch, with 80-columns max formatting. --- elisp/geiser-racket.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'elisp/geiser-racket.el') diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el index ccebcf8..fbd08c7 100644 --- a/elisp/geiser-racket.el +++ b/elisp/geiser-racket.el @@ -363,7 +363,8 @@ 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 '(display (version))'" binary))) + (shell-command-to-string + (format "%s -e %s" binary (shell-quote-argument "(display (version))")))) (defvar geiser-racket--image-cache-dir nil) -- cgit v1.2.3