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-guile.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'elisp/geiser-guile.el') diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el index e70ca30..697a045 100644 --- a/elisp/geiser-guile.el +++ b/elisp/geiser-guile.el @@ -335,7 +335,8 @@ This function uses `geiser-guile-init-file' if it exists." (defconst geiser-guile-minimum-version "2.0") (defun geiser-guile--version (binary) - (shell-command-to-string (format "%s -c '(display (version))'" binary))) + (shell-command-to-string + (format "%s -c %s" binary (shell-quote-argument "(display (version))")))) (defun geiser-guile-update-warning-level () "Update the warning level used by the REPL. -- cgit v1.2.3