emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] [PATCH] Quote path argument in ob-ditaa


From: Gregory J. Grubbs
Subject: [Orgmode] [PATCH] Quote path argument in ob-ditaa
Date: Sat, 17 Jul 2010 22:01:24 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Patch fixes ob-ditaa for paths that contain spaces and other
shell-interpreted characters.


diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el
index 1f56d12..cc06246 100644
--- a/lisp/ob-ditaa.el
+++ b/lisp/ob-ditaa.el
@@ -59,7 +59,7 @@ called by `org-babel-execute-src-block'."
       (error "Could not find ditaa.jar at %s" org-ditaa-jar-path))
     (with-temp-file in-file (insert body))
     (message (concat "java -jar " org-ditaa-jar-path " " cmdline " " in-file " 
" out-file))
-    (shell-command (concat "java -jar " org-ditaa-jar-path " " cmdline " " 
in-file " " out-file))
+    (shell-command (concat "java -jar " (shell-quote-argument 
org-ditaa-jar-path) " " cmdline " " in-file " " out-file))
     out-file))
 
 (defun org-babel-prep-session:ditaa (session params)




reply via email to

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