0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-27 13:32:53 +00:00

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.

TINYCHANGE
This commit is contained in:
Nikolay Kudryavtsev 2021-12-26 22:47:19 +03:00 committed by Ihor Radchenko
parent 7880695221
commit 6156b57bdf
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -81,8 +81,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' "