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-chicken.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'elisp/geiser-chicken.el') diff --git a/elisp/geiser-chicken.el b/elisp/geiser-chicken.el index 7af8676..a68ab7b 100644 --- a/elisp/geiser-chicken.el +++ b/elisp/geiser-chicken.el @@ -270,8 +270,9 @@ This function uses `geiser-chicken-init-file' if it exists." (defconst geiser-chicken-minimum-version "4.8.0.0") (defun geiser-chicken--version (binary) - (shell-command-to-string (format "%s -e \"(display (chicken-version))\"" - binary))) + (shell-command-to-string + (format "%s -e %s" binary + (shell-quote-argument "(display (chicken-version))")))) (defun connect-to-chicken () "Start a Chicken REPL connected to a remote process." -- cgit v1.2.3