From 4c1faea44cbe97e53ffb4f78829b86e0da606417 Mon Sep 17 00:00:00 2001 Message-Id: <4c1faea44cbe97e53ffb4f78829b86e0da606417.1667364311.git.yantar92@posteo.net> From: Ihor Radchenko Date: Wed, 2 Nov 2022 12:43:35 +0800 Subject: [PATCH] ob-maxima: Add extra quotes to Maxima cmd for Windows compatibility * lisp/ob-maxima.el (org-babel-execute:maxima): Add extra quoting apparently needed to make cmd line work on Windows. Reported-by: Juan Alvaro Fuentes Link: https://orgmode.org/list/CA+ikm3wqA33xP4c3pVV+F2a-gn0dbEzsdx6Vf2cRd+37+u6pBA@mail.gmail.com --- lisp/ob-maxima.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-maxima.el b/lisp/ob-maxima.el index dba12d7b6..52423db18 100644 --- a/lisp/ob-maxima.el +++ b/lisp/ob-maxima.el @@ -84,7 +84,7 @@ (defun org-babel-execute:maxima (body params) (cmd (format "%s --very-quiet -r %s$ %s" org-babel-maxima-command (shell-quote-argument - (format "batchload(%S)" in-file)) + (format "\"batchload(\\\"%S\\\")\"" in-file)) cmdline))) (with-temp-file in-file (insert (org-babel-maxima-expand body params))) (message cmd) -- 2.35.1