From 47690d14ac4838d8e39f08bd8224f0b4af053359 Mon Sep 17 00:00:00 2001 From: Nikolay Kudryavtsev Date: Sun, 26 Dec 2021 22:47:19 +0300 Subject: [PATCH] ob-maxima.el: Fix execution on MS Windows * ob-maxima.el (org-babel-execute:maxima): Change command line invocation to a one that should work everywhere. --- lisp/ob-maxima.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/ob-maxima.el b/lisp/ob-maxima.el index 7b49bb07a..08b586414 100644 --- a/lisp/ob-maxima.el +++ b/lisp/ob-maxima.el @@ -77,8 +77,11 @@ This function is called by `org-babel-execute-src-block'." (result (let* ((cmdline (or (cdr (assq :cmdline params)) "")) (in-file (org-babel-temp-file "maxima-" ".max")) - (cmd (format "%s --very-quiet -r 'batchload(%S)$' %s" - org-babel-maxima-command in-file cmdline))) + (cmd (format "%s --very-quiet -r %s$ %s" + org-babel-maxima-command + (shell-quote-argument + (format "batchload(%S)" in-file)) + cmdline))) (with-temp-file in-file (insert (org-babel-maxima-expand body params))) (message cmd) ;; " | grep -v batch | grep -v 'replaced' | sed '/^$/d' " -- 2.34.1.windows.1