emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 9abf1b5167: lisp/ob-maxima.el: correct placement of


From: ELPA Syncer
Subject: [elpa] externals/org 9abf1b5167: lisp/ob-maxima.el: correct placement of $ in command string
Date: Sat, 5 Nov 2022 22:57:52 -0400 (EDT)

branch: externals/org
commit 9abf1b5167e94291eee7c1400277ed55993106f9
Author: Leo Butler <leo.butler@umanitoba.ca>
Commit: Ihor Radchenko <yantar92@posteo.net>

    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 dba12d7b6d..e3dfbb6684 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]