From 423340175a354463c82fac2b4b3a404391e67eb5 Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Thu, 3 Nov 2022 10:39:28 -0500 Subject: [PATCH] lisp/ob-maxima.el: correct placement of $ in command string * ob-maxima.el (org-babel-maxima:execute): Commit 6156b57bdf2b fixed a quoting problem encountered on windows. However, the dollar sign ($) is part of the maxima command string and needs to be escaped on gnu/linux. Reported by: Eric Fraga Ref: https://list.orgmode.org/950eb41c-1c8a-c891-af8d-276f6a452eaa@electrum-bikes.pl/T/#m4b5a54551604e5b3ec21f317c4a31b547ccada68 TINYCHANGE --- lisp/ob-maxima.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ob-maxima.el b/lisp/ob-maxima.el index dba12d7b6..e3dfbb668 100644 --- a/lisp/ob-maxima.el +++ b/lisp/ob-maxima.el @@ -81,10 +81,10 @@ 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 %s$ %s" + (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