On 02/11/2022 11:47, Ihor Radchenko wrote:
(for reference, this email is a followup of
https://orgmode.org/list/ca+ikm3wqa33xp4c3pvv+f2a-gn0dbezsdx6vf2crd+37+u6...@mail.gmail.com)
Ihor, you recently applied an alternative patch to Org main branch.
Emacs tree still has ob-maxima.el with single quotes around batchload.
Nikolay Kudryavtsev. Re: [PATCH] ob-maxima.el: Fix execution on MS
Windows. Thu, 30 Dec 2021 23:54:10 +0300.
https://list.orgmode.org/[email protected]
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))
Notice that code in the message you cited has "%s" and does not have
`shell-quote-argument'. Extra quotes may discard effect of existing
double pass escaping.
cmdline)))
(with-temp-file in-file (insert (org-babel-maxima-expand body
params)))
(message cmd)
Really robust solution require a dedicated maxima option that allows to
pass file name as a separated argument instead of a part of expression,